Skip to content

Tag: select

I have a modal form to write employee working time stamp to an SQL database. I select the employee from a dropdown menĂ¹ and fill by javascript function the name and surname input box using the id tag. …

show/hide section in wordpress with select values

I use Divi Theme in Wordpress. I have sections that I gave IDs. I have a select, and for each option value I use the sections IDs. I want show one section by changing the select option and hide the other section that is showed. Here is the select : Here is the javascript : Could you tell my why

set option “selected” attribute from dynamic created option

I have a dynamically created select option using a javascript function. the select object is when the js function is executed, the “country” object is and displaying “Indonesia” as default selected option. note : there is no selected=”selected” attribute in that option. then I need to set selected=”selected” attribute to “Indonesia”, and I use this using firebug, I can see