SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    subcategory in a form

    Hi! I am a beginner! I am working on a form and I stumbled upon a problem: I want to make a subcategory. For example example I have a check box and if the person checks it I want him to fill in a text box, but right away(when he checks the text box should appear, otherwise it should not appear).
    For example:
    City: (text)
    (check)is it on the road?
    if/when on the road is checked: which road?(text)
    Thank you!

  2. #2
    SitePoint Addict
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    382
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This can be done with javaScript.

    If you are a complete beginner, I would suggest you look into jQuery (jquery.com), and take a look at their tutorial:
    http://learn.jquery.com/about-jquery/how-jquery-works/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •