I use the procedure below to change CSS from JavaScript, but this does not produce any result.
Someone can check the code and tell me the correct method. I need a border for a table with a radius.
This is my table structure:
<table id="tt" width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="179" class="header_links">5<input name="input" class="lang_textbox" type="text" value="Search by keyword" /></td>
<td width="52" align="left"><img src="images/search_go.jpg" width="28" height="24" alt="go" /></td>
<td width="169" class="header_links"><a href="#">FAQs</a> | <a href="#">Sitemap</a> | <a href="#">Contact us</a></td>
</tr>
</table>
And below is javascript that uses
document.getElementById('tt').style.borderRadius = '4em';
document.getElementById('tt').style.MozBorderRadius = '4em';
document.getElementById('tt').style.border = '4em';
source
share