jquery - Can I use only numbers in data-chained attributes in jquery_chained script? -
i need use script jquery_chained numbers https://github.com/tuupola/jquery_chained
js:
<script> $(function(){ $("#series").chained("#mark"); }); </script>
html code
<select id="mark" name="mark"> <option value="">--</option> <option value="1">bmw</option> <option value="2">audi</option> </select> <select id="series" name="series"> <option value="">--</option> <option value="series-3" data-chained="1">3 series</option> <option value="series-5" data-chained="1">5 series</option> <option value="series-6" data-chained="1">6 series</option> <option value="a3" data-chained="2">a3</option> <option value="a4" data-chained="2">a4</option> <option value="a5" data-chained="2">a5</option> </select>
when use numbers in "data-chained", script not work. can use numbers in data-chained attributes?
Comments
Post a Comment