S
S
Sergey Kudich2012-02-29 00:06:17
JavaScript
Sergey Kudich, 2012-02-29 00:06:17

custom form elements?

Good day to all.
I searched on the web, but I didn’t find anything sensible ...
In general, we need customization of form elements such as checkbox / radio / select
Conditions:
Implementation or jQuery or Prototype or just JS
Correct work in modern browsers
For old and mobile browsers if not supported, just display a standard element
. The ability of the script to work with its own events on these elements (preferably automatically, but with a direct indication of callback will also work)

Can someone tell me such a miracle?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
mecommayou, 2012-02-29
@mecommayou

Look at the implementation of forms on worldoftanks.ru

H
himik, 2012-02-29
@himik

jNice

W
WildZero, 2012-02-29
@WildZero

cusel

N
northicewind, 2012-02-29
@northicewind

As I wrote above, the Google Closure Library has Select and it works pretty well. And also a lot more. In addition, you can see Qooxdoo and Dojo Toolkit with their Select

E
egorinsk, 2012-02-29
@egorinsk

What to customize checkboxes and radio? There, writing the code yourself will be faster than figuring out how to screw someone else's. And for selects, there seems to be jQuery UI.

D
Dmitry Shvalyov, 2012-02-29
@dshster

By the way, do not forget that many emulated elements do not fully support the functionality of native ones. For example, the same select, many are used to selecting an element like this - we hover over a collapsed element, press the button, the element expands, without releasing the button, move the cursor to the desired item, press the button, a selection occurs.
Only 1 out of 10 custom selects support such work, and it is very unpleasant when instead of the usual action when moving the cursor while holding the button, text is selected or the element itself is dragged.
Google Closure Library supports this behavior, jqery ui, jNice, selectboxfactory, and many others do not. Chosen - only partially.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question