Atozed Forums

Full Version: IW15.1.5 Button and JS onclick
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Button open/close accordion (section1, section2) .

IWButton property set Script Events -> onClick ->  $("#section1").collapse("hide"); $("#section2").collapse("show");  -> OK

IWButton Events OnAsyncClick set  
WebApplication.CallBackResponse.AddJavaScriptToExecute('$("#IWButton").click(function(e) { $("#section1").collapse("hide"); $("#section2").collapse("show");  '); -> NOT WORK
In the browser press ctrl-shift-j - are there any errors listed?
I believe $("#IWButton") should be $("#IWBUTTON").