www.webdeveloper.com
Results 1 to 8 of 8

Thread: How to Create a Dynamic Table in HTML?

  1. #1
    Join Date
    Oct 2012
    Location
    Bangalore
    Posts
    2

    How to Create a Dynamic Table in HTML?

    Hello Friends,

    I am new to HTML. I would like to know how to create a table in HTML which dynamically changes its cells value w.r.t the drop down option and click on (submit) option.

    Please help me to resolve this...

    Thanks in Advance...!

  2. #2
    Join Date
    Apr 2012
    Posts
    8
    By using only html it is not possible to do it. but by using the javascript you can show or hide the rows depending on the selected dropdown option

  3. #3
    Join Date
    Oct 2012
    Posts
    13
    Yes java script is really helpful try with that

  4. #4
    Join Date
    Oct 2012
    Location
    Bangalore
    Posts
    2
    Thank You friends...!

  5. #5
    Join Date
    Aug 2012
    Location
    1453 Gingerwood ave, Milpitas CA 95035,
    Posts
    37
    Not possible with HTML.... If u merge javascript with it, then it is possible...
    Another option can be HTML5.........

  6. #6
    Join Date
    Oct 2012
    Location
    Sunnyvale, CA
    Posts
    7
    Quote Originally Posted by Previj View Post
    Hello Friends,

    I am new to HTML. I would like to know how to create a table in HTML which dynamically changes its cells value w.r.t the drop down option and click on (submit) option.

    Please help me to resolve this...

    Thanks in Advance...!
    Perhaps you can use Javascript, but it will be very complex. The ONLY proper way to do it is to use a server-side script and AJAX.

    Each time a user enters a field, an HTTPRequest is sent to the server, and the server replies by creating a new field or executing the next stage of the process.

    HTML is purely static: it displays what it is told to display. Thats it! Javascript allows you to add a little bit of intereactivity, but I guess it'd be better to use AJAX.

  7. #7
    Join Date
    Oct 2012
    Posts
    11
    <!--Creating Table borders-->
    <html><body>
    <p>Table With Border</p>
    <table border="10">
    <tr><td><form action=""><select name="fruits"><option value="">Apple</option><option value="banana">Banana</option><option value="pineapple">Pineapple</option><option value="pears">Pears</option></select></form><input id="Submit2" type="submit" value="submit" /></td><td>200</td></tr>
    <tr><td>300</td><td>400</td></tr>
    </table><hr />
    </body></html>

    Did you means something like this!!!!!

  8. #8
    Join Date
    Jul 2012
    Posts
    18
    If you want to create Dynamic tables in HTML then you can use java script to create or hide the tables. This is the best use of java script.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles