Active
Project:
Jquery Dropdown
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 May 2009 at 19:02 UTC
Updated:
12 Jan 2011 at 11:09 UTC
I'm using your module and it's working nicely (thanks!)
but we needed to do an ajax submit after this drop-down element was selected, so i added a line to the javascript file which triggers the onchange event of the original select
Line 83:
$('#'+select_id).trigger("onchange");
Comments
Comment #1
drupalninja99 commentedk i will have a look, i'll test and add. i also think i need to wrap this in drupal behaviors instead of the $(document).ready() to do it the "drupal" way, stay tuned.
Comment #2
drupalninja99 commentedUm now I can't find where to put this since I made several changes. If you want give me the line number otherwise I'll have to close this.
Comment #3
thtas commentedLine 82 of jquery_dropdown.js
so it would look like this
Comment #4
drupalninja99 commentedi will see if i can add this in
Comment #5
drupalninja99 commentedthis is done, added new release which is being packaged
Comment #7
gabrielu commentedI am hooking into my select item with $().change(function(){ ... })
My problem is that the change event does not trigger on $('#'+select_id).trigger("onchange"); but on $('#'+select_id).trigger("change");
Do you know why? Would it be better to replace line 82 from:
to
Thanks,
Gabriel
Comment #8
gabrielu commented