#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    2
    Rep Power
    0

    Need Help Please


    I'm a newbie and I was hoping that someone could help me.
    How would I add a line of text to the end of this checkbox code:

    <div class="checkbox">
    <input type="checkbox" value="None" id="checkbox" name="check"/>
    <label for="checkbox"></label>
    </div>

    Thanks in advance!
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2009
    Location
    Hartford, WI
    Posts
    1,406
    Rep Power
    24
    With HTML, it's rather straight out. Put what you want where you want it. Once you start getting things down, it will still kinda be the same, but you can move multiple DIVs around the page and place them as you wish. You want it after the checkbox, so merely right after the checkbox.
    Code:
    <div class="checkbox">
      <input type="checkbox" value="None" id="checkbox" name="check"/>Text can go here.
      Text can go here.
      <label for="checkbox"></label>Text can go here.
      Text can go here.
    </div>
    That label will only appear for the checkbox. Did you wish it to show for the printed text as well?
    He who knows not that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.
  4. #3
  5. Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2004
    Location
    New Springfield, OH
    Posts
    1,308
    Rep Power
    1473
    Text can go inside of the label tags too, which is probably where it belongs. Is this text to identify what the checkbox is for? If so, it belongs inside the label tags.
    Don't like me? Click it.

    Scripting problems? Windows questions? Ask the Windows Guru!

    Stay up to date with all of my latest content. Follow me on Twitter!

    Help us help you! Post your exact error message with these easy tips!
  6. #4
  7. No Profile Picture
    Super Moderator
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2009
    Location
    Hartford, WI
    Posts
    1,406
    Rep Power
    24
    A nice thing about it being in the tags, if this is an option for ya, is the user can then also click the description to toggle the checkbox/radio.
    He who knows not that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    2
    Rep Power
    0
    Thanks for all the help - much appreciated!

IMN logo majestic logo threadwatch logo seochat tools logo