I know to apply css to DOM using jquery using .css() , I want to know is there any .attr or .att method so that I can assign align attribute to table header using jquery. If yes please show me the code.
<table>
<th >
</th>
<th >
</th>
<th >
</th>
</table>
Here is a sample code
$(element).attr("nameAttr",valueAttr);like this you can add any attribute to any html element