I am working on a sample problem on jsFiddle at http://jsfiddle.net/Q9yHD/
I am trying to add a border to my table with code:
$("#") + $id).find(".name").attr("border", "thick");
But it doesn’t seem to be working. What am I doing wrong in here?
If you want to set the border attribute of a
<table>remove the extra), here:To make it this:
Or if you’re after CSS styling, you should use
.css(), like this: