Change function in Jquery on change of dropdown -
I tried it but if it does not work, I want to read the drop down values on the change of dropdown
$ ('.down ડ્રોપડાઉન'). Change (function () {var valueOfsectotList = $ (this) .attr ('data-value'); $ ('# sector value') .val (valueOfsectotList); loadfilter (manoffsextlist);});
Enter the code here
If you want to get the attribute of your selected option data-value
, then you can change:
var valueOfsectotList = $ (this) .attr (' Data-value '); From
to:
var valueOfsectotList = $ (this) .find ('Options: Selected'). Attr ('data-value');
Comments
Post a Comment