Hello,
Not really sure if this is the right place to post this to but I am pretty sure I need js to accomplish this. I need to make a dropdown selection menu for my wordpress theme options, but I can't use the conventional <select>
tag because I want my options to be a list of small images and this tag does not support it. (There were suggestions to use background-image but it didnt work in chrome). The problem is not making the list, I can do that, but I need it to work like a <select>
tag. Meaning that the container element must have a 'name' value, cause wordpress needs this to save the settings in database. I hope I made myself clear enough.
An example what it could look like:
<ul id="infobox-img-dropdown-list" name="featured-infobox-1-img">
<li value="phpWillFill"><img src="phpWillFillThis" /></li>
<li value="phpWIllFill" class="selected"><img src="phpWillFillThis" /></li>
<li value="phpWillFill" ><img src="phpWillFillThis" /></li>
</ul>
It's basically <select> but it shows images. I need it to function like <select> too.
For those who are familiar with wordpress, I am creating options page for my theme and am currently building the callback function for add_submenu_page() to display the settings form.