Jquery - How To Grab Specific Data-type Of Option After That Option Is Selected? May 31, 2023 Post a Comment I'll jump straight with the markup, then explain what I'm trying to do. Html select options Solution 1: How about that?$("#1d").on("change", function () { var url = $(this).children(":selected").data("url"); $("#1e").val(url); }); CopyDEMO:http://jsfiddle.net/aRzNn/Also personally I enjoy this solution:$("#1d").on("change", function () { $("#1e").val(function() { return $("#1d > :selected").data("url"); }); }); Copy Share Post a Comment for "Jquery - How To Grab Specific Data-type Of Option After That Option Is Selected?"
Post a Comment for "Jquery - How To Grab Specific Data-type Of Option After That Option Is Selected?"