I have an existing prototype code base that does something with changes to selectbox ...
I used jQuery, which generates (stylized) unordered lists, and I want proxy clicks on this list on my selectbox ... It all works fine (calling val() on selectbox), but the prototype does not accept these changes, even when I explicitly calling change() on selectbox ... Does anyone know what is going on?
I could post a bunch of code, but it's all very simple, I think the only important part:
parent_obj.val (selected_idx). Button ();
Which modifies the selected item in my selection window, but does not start my prototype event handler.
edit:
There will probably be an answer about using trigger (), etc., Which doesn't seem to work either:
parent_obj.val(selected_idx).click().change().trigger('click'); parent_obj.find('option value[' + selected_idx + ']').click().change().trigger('click');
source share