prototype-chosen

how to fire onchange event in chosen prototype javascript select box?

雨燕双飞 提交于 2019-12-19 03:45:53
问题 I am using chosen prototype for select box. Now i want to fire onchange event on that select box. here is the link for chosen prototype How to do this. please help me. <script type="text/javascript" src="/js/Event.simulate.js"></script> <script src="/js/prototype.js" type="text/javascript"></script> <script src="/chosen/chosen.proto.js" type="text/javascript"></script> <div class="side-by-side clearfix" style="margin-bottom:14px;"> <select data-placeholder="Select Loacation" class="chzn

how to fire onchange event in chosen prototype javascript select box?

不羁的心 提交于 2019-12-19 03:45:04
问题 I am using chosen prototype for select box. Now i want to fire onchange event on that select box. here is the link for chosen prototype How to do this. please help me. <script type="text/javascript" src="/js/Event.simulate.js"></script> <script src="/js/prototype.js" type="text/javascript"></script> <script src="/chosen/chosen.proto.js" type="text/javascript"></script> <div class="side-by-side clearfix" style="margin-bottom:14px;"> <select data-placeholder="Select Loacation" class="chzn

Update prototype chosen.js dynamically

社会主义新天地 提交于 2019-12-10 23:26:38
问题 I'm a new to Prototype and I can't really understand the minimalist documentation provided here http://harvesthq.github.com/chosen/ It says that to update chosen.js dynamically, we should use this snippet Event.fire($("form_field"), "liszt:updated"); What I don't understand is, which element need to be targeted on that Event.fire . Here in my case, I have a dynamic form with two select element. On which the second select element is enabled only after user choose the option on first select