JQuery floatThead floating table header

28 views
Skip to first unread message

Mark

unread,
Dec 9, 2019, 6:42:34 PM12/9/19
to web2py-users
Hello,

I try to use the following JQuery code in Web2py 2.18.3 or 2.4.5, but it didn't work. I hope that the table header is fixed/floating, and I am not sure if there is a better way to do it in web2py. The link to jquery.floatThead is https://mkoryak.github.io/floatThead/. Any help would be appreciated.

web2py_ajax.html
response.files.insert(0,URL('static','js/jquery.floatThead.js'))

    var $table = $('.web2py_table');
    $table.floatThead();

Thanks!

Mark

unread,
Dec 9, 2019, 10:02:10 PM12/9/19
to web2py-users
Never mind, I just found the solution. The code need to be changed to "var $table = $('table');"
Reply all
Reply to author
Forward
0 new messages