Buy Now
Sign in

Submit Form on Dropdown change?

2D77rus , September 03 2019, 14:05
2
2D77rus 48
September 03 2019, 14:05 #389095
Hello!
Say I have a simple Form with only Dropdown and no Submit button, and I want this Form to be sent when a user selects a value from Dropdown list.
Could you give an example how this can be done?
Thank you.
healyhatman 8
September 03 2019, 14:19 #389096
 1
 Answer
With jQuery
jQuery(document).on('change', 'select[name="nameofyourselectfield"]', function() { jQuery('.ui.form').form('submit'); } );
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
2
2D77rus 48
September 04 2019, 12:57 #389111
Thanks! That works.