#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
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    677
    Rep Power
    7
    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 and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - follow him
  4. #3
  5. Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2004
    Location
    New Springfield, OH
    Posts
    1,236
    Rep Power
    1469
    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
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    677
    Rep Power
    7
    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 and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - 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