Re: [web2py] How to clear a list in a view with jquery

2020-06-07 Thread António Ramos
i guess you mean {{for detail in details:}} instead of {{for detail*s* in details:}} anyway the python code is rendered in server before being sent to the view. so your script cant change any of your python code output You could use the ajax function to update a div content or better vuejs or

[web2py] How to clear a list in a view with jquery

2020-06-06 Thread mostwanted
Guys is it possible to clear a list in a view using jquery? Something like this: *CODE EXAMPLE:* {{if details:}} {{for details in details:}} {{=details.first_name}} {{=details.last_name}} {{pass}} *$(function(){$('#close').click(function(e){{{details.clear()}};});});* How can I achieve