Directly storing values in the TD tags

I recollect some mechanism, via which you can directly store the values between the TD tags, ie HTML table data tags.
 
By this method you can avoid the HTML controls like Textbox, TextArea bla.. bla..
 
First design your table properly and give id name to the respective TD tags. For example
 
<table id="mainTable" width = 100%>
    <tr>
        <td id="fstVal"> First Value </td>
        <td id="sndVal"> Second Value </td>
    </tr>
</table>
 
Now all you have to do is in your jscript by using the document.getElementById('fstVal').lastChild.data = 'Third Value';
 
What do you say.. did that work for you? But me..
 

Comments

Popular posts from this blog

Network Intrusion Detection using Supervised ML technique

Common mistakes by Interviewer

Keep the system active, to avoid the auto lock