How to pop up warning message(GUI) after user push "Save&Apply" button by cbi lua modification?

I would like to modify cbi wifi.lua for checking an GUI option(checkbox) status after user push "Save & Apply" button. If the item is selected, GUI should pop up warning window for user to confirm. (For example, if user select "hide essid", GUI shoule pop up a warning message window to inform user that WSC will be disabled and require confirmation). How to implement "pop warning msg" & javascript onclick function in cbi lua? Thanks a lot!

2 Likes