Creating expandable feilds for a table

Discussion in 'JavaScript' started by robt89, Sep 30, 2009.

  1. #1
    Hi,

    i am new to the world of Java and some of the html stuff, i am currently trying to work on making a website with a friend and for some of the information, i am wanting to set it so that some of the fields in a table only show when a plus button is clicked or the name is hovered over. when this happens, i am wanting the fields to appear/scroll down from under the title

    can anyone advise me on how to do this?

    cheers
     
    robt89, Sep 30, 2009 IP
  2. XDMCoder

    XDMCoder Peon

    Messages:
    50
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use jQuery. It is very simple )
     
    XDMCoder, Sep 30, 2009 IP
  3. robt89

    robt89 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks,

    how do i use jquery? i dont have a lot of information on JS:(
     
    robt89, Sep 30, 2009 IP
  4. XDMCoder

    XDMCoder Peon

    Messages:
    50
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Tutorials
    Here is the basics of JS. You need to know them if you want to code on JS. Not hard to understand )
    Then read about jQuery.
    Example:
    
    ('#button').click(function(){
    						   ('#something').hide('slow');
    						   });
    HTML:
    When you push button with id 'button' the (for example) input with id 'something' will hide slow :)
     
    XDMCoder, Sep 30, 2009 IP