By drupaldc on
Hi everybody. I am trying to submit data from a select list without hitting a submit button (just by changing the select list value).
How do I go about that?
Hi everybody. I am trying to submit data from a select list without hitting a submit button (just by changing the select list value).
How do I go about that?
Comments
I was able to do that with
I was able to do that with jquery.
I have another question though. I added a change event in my .js file that takes the selected value of the list and sends it as a get to index.php. I am not sure how to display my results, since the value that is sent to my module is being used in order to create a collapsible menu with radio buttons.
Basically the select value is a list name, and the collapsible menu is a list of emails based on the list name.
After the get request is complete I get back the entire page, its not what I want though, I want only the collapsible menu to change.
Do you guys have any suggestions?
Thanks a lot.
simply the problem is that
simply the problem is that besides a json object I am getting the entire page back in my callback function as data.
I tried to set return to false with no luck in the body of function(data) => callback function.