JQuery button shortcut parameter does not work with input type flag

Demo here: http://jsfiddle.net/dRtaR/2/

JQuery UI button shortcut option does not work.

My goal is to have a label on the button WITHOUT the need to specify a </label> html </label> .

Can I do it?

+4
source share
1 answer

Not with this jQueryUI method. On the .button() tab, an overview:

In addition to the main buttons, radio buttons and checkboxes (radio and checkbox inputs), you can convert them to buttons: their associated label is styled as a button, while the basic input is updated by click.

When you point a button to a check box or radio button, it hides the input and erases the associated label.

Is there a reason you can't just write a shortcut? If you do not have access to html, you can write it using jQuery. See this terrible example . This may give you an idea of ​​where to look next.

+2
source

Source: https://habr.com/ru/post/1335420/


All Articles