|
Title: Checkbox onChange -> change style of DIV to "visibility: hidden" ? Post by: worm6666 on August 24, 2019, 11:13:43 PM Hi all, my first post here - because of poor documentation of event onChange of checkbox... :( (or I'm missing something...)
I have #ID_DIV with some field and label inside (so i can handle its visibility together) - that should be visible only when checkbox nearby is checked ON. Example of usage - in datagrid i style number #1 RED when his value is lower than other number #2 - so on first look we see - which item should we care about. Aka "MINIMUM ON STOCK"... The other number #2 can be set up ON OFF if you want to track the minimum of number #1 - if it falls below the value of #2 - it should be RED (and perhaps some more coloring and logic :) ) Checkbox ON: (https://i.imgur.com/7R0CcIB.jpg) Checkbox OFF: (https://i.imgur.com/swp5JOz.jpg) Some better help of CHECKBOX available ? Or can somebody post code for this ? I like to study self but I'm stuck here... :'( Thank You very much ! p.s. every item has also #2 value (default 0) set in database (also it is like pair ITEM_PCS and ITEM_MIN_STOCK) |