Never mind, I just found the solution. The code need to be changed to "var 
$table = $('table');"


On Monday, December 9, 2019 at 1:42:34 PM UTC-5, Mark wrote:
>
> 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!
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4774fe65-5954-4363-9a12-ae724982b8c9%40googlegroups.com.

Reply via email to