EasyUI Forum
September 14, 2025, 12:14:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Checkbox onChange -> change style of DIV to "visibility: hidden" ?  (Read 5041 times)
worm6666
Newbie
*
Posts: 8



View Profile Email
« on: August 24, 2019, 11:13:43 PM »

Hi all, my first post here - because of poor documentation of event onChange of checkbox... Sad (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 Smiley )

Checkbox ON:


Checkbox OFF:


Some better help of CHECKBOX available ? Or can somebody post code for this ? I like to study self but I'm stuck here... Cry

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)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!