Jump to content

Changing Text/labels For Checkboxes


WebNerd

Recommended Posts

This relates directly to my previous topic here. I couldn't find another topic to answer this question.I'm resorting a list of checkboxes. I've done everything I need to do except change the text displayed with the checkbox. I thought it would be more straight forward. I think I know how to get it to work using some examples I found, but I'd like to know the proper way to do it.To start, I don't think I'm defining the checkbox and label properly. I'm using the common shortcut of just putting the text after the <INPUT> tag. I think I should use the <LABEL> tag. My checkboxes are all named the same thing. Does this mean that I can't use the "FOR" attribute on the <LABEL> tag? How do I find which label goes with the checkbox that I'm changing? Do I just assume that the label is the next element on the form? Or is there a better way to do this?Thank you in advance!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...