I need to run a jquery function if a certain dropdown option is selected.
option 1
$(document).ready(function() { $("select[name='dropdown']").change(function() { if($(this).val()==2){ //do what u want here }//u can check your desired value here }); });
I think you want this.