Questions tagged [label-for]

The for attribute of a HTML Label tag is used for specifying the ID of the input, to which the label is given.

13 questions
2
votes
2 answers

How can I cancel a users radiobutton selection, after a confirm dialog cancel selection?

In a bigger project, I have a group of radiobuttons, which updates the text in a textarea. Sometimes however, I need to let the user choose if they really want to change the text. I'm using hidden radiobuttons, and only the labels are showing. I've…
jumps4fun
  • 3,994
  • 10
  • 50
  • 96
2
votes
2 answers

How to find the text in label-for of jQuery mobile Radio and Checkbox with knockout?

I'm using jQuery 1.9.1, jQM 1.3 & knockout 2.2.1. My html is as follows:
Colour:
1
vote
0 answers

Wrapping an image in a label-for tag

I have created a content slider via CSS and HTML. The content slider works properly, but what I am trying to do is wrap an img in a "label-for" tag. Is this even possible? is there another solution. I just want the ability to click on the img and…
Caleb Nunn
  • 11
  • 1
1
vote
1 answer

spacing and justified wrapping of extra-long radio button labels with label-for markup

ASP.NET renders a list of radio buttons as rows in table with inputs in the cell, like this: