Layout drop-down lists

0 like 0 dislike
14 views
When you need not just drop down, and nicely decorated dropdown list, web designers use a variety of Java-scripts. These skripty all about the same. The select tag is replaced with the set of tags div. Simple steps — selection of list item when it is done. But if we need slightly more complicated, for example, to attach a function to an event drop-down list, onchange, then it is not working. Tell me how this problem is solved or in any scripts for processing Dodonov, this problem was originally solved.
by | 14 views

7 Answers

0 like 0 dislike
If you list replace a bunch of DIVS, then you will need to handle already not onchange, and, for example, onclick of the diva, and, optionally, to do there is change the list to work onchange. Something like that.
by
0 like 0 dislike
by
0 like 0 dislike
In jQuery for example (I think in any other serious framework) fierit events, and has been custom. For example here is a plugin jQuery custom selectboxes. Specifically on this page to perform:
\r
$('#default-usage-select').change(function() { alert(this.value); });

And then choose the color in the demo select, then alertness its value.
by
0 like 0 dislike
here you can choose what you like www.queness.com/post/204/25-jquery-plugins-that-enhance-and-beautify-html-form-elements
\r
I personally like this more than the rest www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
\r
feature on the event drop-down list, I think no problem to write.
by
0 like 0 dislike
If you are using jquery you can generate event using trigger('change').
by
0 like 0 dislike
And why do you select points in such wishlist? JavaScript and a hidden field. All the hooks on the JavaScript.
by
0 like 0 dislike
I myself wrote a plugin (the problem was existing just on onchange). I advise you to do the same, then less problems will be.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 22, 2019 by turekulovass
0 like 0 dislike
1 answer
asked Apr 28, 2019 by sanya111
0 like 0 dislike
1 answer
0 like 0 dislike
6 answers
110,608 questions
257,186 answers
0 comments
28,714 users