I'm trying to create an html tag using the following Jquery
$("<option />",{ 'data-src':"{{ asset(my-javascript-variable) }}", id:'my_id').appendTo($('#image'));
This is an option tag which I am appending to a select. This is occurring on the success of an ajax call within a for loop.
How can I construct a URL using the asset() method with a javascript variable? Is this even possible?