javascript - jQuery selectmenu version 1.10 not triggering change -
i've added jquery version of 1.10 project , selectmenu widget , cannot alter event fire.
the selectmenu working fine before upgraded 1.10.
what need working?
var getprojectinfo=function(){ } --i've tried way var sel = helper.selectmaker.makeselect(data); sel.change = getprojectinfo; $('#projsph').appendchild(data); $(sel).selectmenu(); --and way **this way throws error of selectmenu widget not have method change. var sel = helper.selectmaker.makeselect(data); $('#projsph').appendchild(data); $(sel).selectmenu('change', getprojectinfo);
------------update i've got work like
$(sel).selectmenu({change:getprojectinfo});
but selection not collapse
got styles google
http://code.google.com/p/jquery-ui/source/browse/branches/labs/selectmenu/ui.selectmenu.css?r=2776
you're using outdated files. , guess talking jquery ui 1.10.
try older updated version: https://github.com/fnagel/jquery-ui/ not sure of version work without problems ui 1.10, not tested yet
or, better, utilize official yet unreleased version: https://github.com/jquery/jquery-ui/tree/selectmenu
javascript jquery jquery-ui-selectmenu
No comments:
Post a Comment