javascript - Accessing onchange using the jQuery plugin DropKick dropdown list -
on page, have form 3 <select> drop down lists. these lists use dropkick make them nice.
with dropkick added, ddls no longer conventional lists , cannot accessed such.
from i've found, can call onchange setting class on <form> tag , using following script:
function submitit(){ alert('test'); } $('.devicechosen').dropkick({ change: submitit }); this works, , alert shows. doesn't work couple of big reasons.
the first <select> field field gets shown result. , else on web page after element gets removed page.
so have 3 ddls , want able set function gets called when devicechosen id ddl gets changed. don't want onchange event other 2 lists.
is doable?
i've tried things below, not work.
$('#devicechosen').on('change', function() { alert('dsf'); });
i couldn't working, ended using selectbox instead
Comments
Post a Comment