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...! :)
Printable View
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...! :)
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
Yes java script is really helpful try with that
Thank You friends...! :)
Not possible with HTML.... If u merge javascript with it, then it is possible...
Another option can be HTML5.........
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.
<!--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!!!!!
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.