jeudi 28 août 2014

How to call selector from dynamic content using jQuery?


Vote count:

0




I have a table that its generated on server-side and then I append it to the view page (client-side). So the table is not the DOM. Then I am working using StickyTableHeaders jquery plugin to add sticky header of my table. But I can't call the table class name because the table not printed on the page. I tried to call the selector by :



var offset = $('.navbar').height();
$(".table").stickyTableHeaders({fixedOffset: offset});


So, how my table class name accessible by the StickyTableHeaders function.



asked 1 min ago

asik

65






How to call selector from dynamic content using jQuery?

Aucun commentaire:

Enregistrer un commentaire