ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Changing dropdown selection using Javascript

healyhatman 19 Mar, 2018
I'm trying to do exactly what the title says - change the selected value of a dropdown field using javascript.

I have a custom Google Address I'm trying to sort out, trying to use the results to change the selected item in my State dropdown, but nothing works. Thanks.
Max_admin 20 Mar, 2018
Answer
Hi healyhatman,

After changing the select field value using javascript you can try to call the following code:
$("#select_id").closest(".dropdown").dropdown("refresh");
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com