How to pass variable value to HMTL data-type : I have a variable declared: var fburl = data.results[0].alias;

How can I pass the var value to the HTML data-type?

Example:
var myurl = data.results[0].alias;

<div class="myclass" data-url="value in myurl"></div>