Simple question: How to require the user to input a value in a html label?

Discussion in 'Programming' started by search engine, Jun 22, 2011.

  1. #1
    Hello guys.

    I'm not that good with programming.

    I have this script that I want the user to put a value inside the html label.
    And if they didn't before submitting a red text appear and asks to insert one.

    Could anyone provide me with the code?
     
    search engine, Jun 22, 2011 IP
  2. sudhisinha

    sudhisinha Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sudhisinha, Jun 22, 2011 IP
  3. indianseocompany

    indianseocompany Peon

    Messages:
    204
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you need to have a javascript form validation which will check whether user has input any data or not.


    I hope you can follow the procedure.
     
    indianseocompany, Jun 24, 2011 IP