I am trying to get div from 15th td column and set width of div to 300px.
I have table summary to recognize the table. How to do set width?
<table summary="Copy and Design RFP">
....
...
/* column15*/
<td class="ms-vb2">
<div dir="">1/9/14 - 1st draft sent</div>
</td>
So far I wrote
$(document).ready(function () {
if (window.location.href.indexOf("dept/mkt/Lists/Request for Projects/Active Projects.aspx") > -1) {
$('table[summary="Copy and Design RFP"] tr td:nth-child(15)').each(function() {
var id = $(this).find('div'); // This is not working
});
}
});
$('table[summary="Copy and Design RFP"] td:eq(14) div').width(300)