开发者

attr is not applying in chrome

i have created a row an i am applying a attribute in td colspan .copspan is not applying

my code is like this

FooodJournalis my row id

 var newRow = $('开发者_开发技巧#FooodJournal').clone();

  $(newRow).find('td[id^=FooodJournalTd').attr('colspan',6);


If you are cloning an element, you need to append it to the DOM. Look at appendTo: http://api.jquery.com/appendTo/


Did you try newRow.find instead of $(newRow)? Also, does this work in other browsers?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜