On Fri, Sep 13, 2019 at 2:31 PM mostwanted <[email protected] <javascript:>>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/a2d4fc64-3964-41b9-a300-72a448ac3f91%40googlegroups.com.