Hey Dave, the $(document).ready(function(){}) statement is repeated as many times as as allowed by the for loop, I checked with the Firefox Web Developer-Debugger plugin, its repeated as per the number of elements in the for loop,its just not respecting the the rules of the condition i don't know why!!!
On Sunday, September 15, 2019 at 9:19:46 PM UTC+2, Dave S wrote: > > > > On Fri, Sep 13, 2019 at 2:31 PM mostwanted <godir...@gmail.com> wrote: >> >>> This conditional statement should be simple & execute without any >>> issues, I have created a point of Sale system, in a view it shows all the >>> items & their available quantities, what i want is that when a product's >>> quantity goes below 10 the quantity figure should turn red & a please >>> refill message should be displayed but i am not getting this, the if >>> condition is ignored altogether, only the else statement is executed! >>> >>> > > On Friday, September 13, 2019 at 12:44:27 AM UTC-7, Jirawat Kusolpreedee > wrote: >> >> every python code must be enclosed in {{}} also you need a {{pass}} at >> the end of if-else statement >> >> > But he's writing JS here. His problem, I think, is that > $(document).ready only runs once ... when the document status becomes > "ready" It looks like Paco B has a solution. > > /dps > > > -- 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/bb89c1ac-a8bf-4359-9745-fb70804c9e80%40googlegroups.com.