मैं onchange
से select
बाध्यकारी में थोड़ा उलझन में हूं। मैं देख सकता हूं कि ऐसा करने के कई तरीके हैं।ड्रॉपडाउन के लिए बाध्यकारी
एचटीएमएल
<select id="ddl" onchange="test()"></select>
jQuery
$(function(){
$("#ddl").change(function(){
return test();
});
});
या
$(function(){
$("#ddl").bind("change", function(){
return test();
});
});
इन 3 तरीकों के अलावा
0,123,- कौन सा मानक अभ्यास के रूप में माना जाता है?
- क्या इनमें से किसी भी तरीके से कोई योग्यता है?
http: // stackoverflow.com/questions/937039/what-is-the-difference-between-the-bind-and-live-methods-in-jquery आपकी मदद करता है .. – sasi