March 15, 2012

can I use ul li instead of select dropdown and with jquery make it part of a form?

Question by sandrophoto

I went really long way trying to rewrite select to ul li and style it accordingly. But I’m getting really annoyed with the weight of code and minor annoyances on the way.

So I’m thinking to ditch the idea completely, and just use normal ul li menu and some kind of javascript to make it function like select (for form submission etc).

So is this possible? any example code you can give me?

My concerns is Cross browser compatibility.

Answer by Starx

Lovely idea. I just made one in the fiddle check it out here.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!