Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IW15.1.5 Button and JS onclick
#1
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
Reply
#2
In the browser press ctrl-shift-j - are there any errors listed?
Reply
#3
I believe $("#IWButton") should be $("#IWBUTTON").
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)