'Return the value to my html code ( i want to return the value of var d)

$(document).ready(function(){ $("select.responsibility").change(function(){ var selectedresponsibility = $(this).children("option:selected").val(); var d = selectedresponsibility; $d= d; alert(d); }); });


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source