I use msDropDown
to convert the <select>
to <ul>
list for languages switcher. But the problem is that with this jQuery plugin, the select takes a long time to load after page loaded.
So, how can I use a ul
list rather than select
?
This is my select code:
<select name=lang class=language onchange=location.href='index.php?lang='+this.value+''.$trackpage.'>
<option name=lang data-image=style/lang/de.png value=de>Deutsch</option>
<option name=lang data-image=style/lang/en.png value=en selected=selected>English</option>
<option name=lang data-image=style/lang/es.png value=es>Espanol</option>
<option name=lang data-image=style/lang/fr.png value=fr>Francais</option>
<option name=lang data-image=style/lang/it.png value=it>Italiano</option>
</select>
I tried with:
<ul onchange=location.href='index.php?lang='+this.value+'>
<li>
<a href= name=lang data-image=style/lang/de.png value=de>English</a>
</li>
</ul>
but value
and onchange
is not supported by ul
and a
.
Is there a way to make ul
works with the select
attributes?
Thank you! And sorry for my bad English!