There is a great tip which i am going to share with my viewers. Sometime client demands stupid thing like how we can make anchor tag in html select option, so now don’t worry about it we have a solution for this little stupid problem. Check this code and just put it in your template after it you will see a great magic.

<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
     <option value="">Choose insurance Type...</option>
     <option value="http://www.themesrefinery.net/">Themesrefinery</option>
     <option value="http://yahoo.com">Yahoo</option>
</select>

Hopefully you have enjoyed this code. Please don’t forget to share this code with your friends and on your wall.

Thanks

About The Author

Related Posts

Leave a Reply

Your email address will not be published.