...

View Full Version : Tabel edits



sherlockturtle
05-11-2011, 09:47 PM
HOw would you make a button that would change a tabel?

DanInMa
05-11-2011, 10:30 PM
HOw would you make a button that would change a tabel?

Sherlocktutrle. I understand you are having a language problem, but you need to be MUCH more descriptive with your questions.

What kind of button?

Change a table how?

What *exactly* are you trying to do?

sherlockturtle
05-12-2011, 03:26 AM
Im sorry, i type fast what i wan to know is how would you make anytpe of button that would rewtie a part of a HTML tabel.:D

bullant
05-12-2011, 03:35 AM
which part of the table? :D

post the code for your table and highlight the part you want to change.

sherlockturtle
05-12-2011, 03:45 AM
I wont post it but here
<table border = "7">
<tr>
<td><b>1</b></td>
<td><b>2</b></td>
<td><b>3</b></td>
<td><b>4</b></td>
<td><b>5</b></td>
<td><b>6</b></td></tr>
</table>
The 1 2 3....

bullant
05-12-2011, 03:49 AM
post the code the table will have after the button is clicked.

sherlockturtle
05-12-2011, 03:50 AM
Well i dont realy care maby change the 1 2 3... to One Two Three

bullant
05-12-2011, 03:51 AM
I wont post it but here


If you don't want to post it, that's fine. But it's then my choice also to not post the answer you are after ;)

sherlockturtle
05-12-2011, 03:52 AM
<td><b>One</b></td>
<td><b>Two</b></td>
<td><b>Three</b></td>
<td><b>Four</b></td>
<td><b>Five</b></td>
<td><b>Six</b></td>

bullant
05-12-2011, 03:53 AM
Well i dont realy care maby change the 1 2 3... to One Two Three

in that case, all you need to do is change the innerHTML of the <td>'s.

There is a truck load of info on the interweb on how innerHTML works.

Post your javascript that you have so far and we can try to help you get it working.

sherlockturtle
05-12-2011, 03:54 AM
Ohh i rememeber that thanks!!:D

bullant
05-12-2011, 03:58 AM
no problem :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum