Hello everyone,
I am trying to write a javscript function that opens a rad window if the user selects a certain value from a rad combo box.
The event fires fine when the user changes a value in the combo box. The problem is that the javascript IF statement seems to be ignored.
Im sure this is a school boy error - but I just cant see what the problem is...
I am trying to write a javscript function that opens a rad window if the user selects a certain value from a rad combo box.
The event fires fine when the user changes a value in the combo box. The problem is that the javascript IF statement seems to be ignored.
The radwindow opens even when the selected value is not 4...which I checked with document.write.
Im sure this is a school boy error - but I just cant see what the problem is...
| function OnClientSelectedIndexChanged(sender, args) |
| { |
| var item = args.get_item(); |
| var selectedvalue = item.get_value(); |
| //document.write("value is:" + selectedvalue); |
| if (selectedvalue="4") |
| { |
| window.radopen("csat.aspx","UserListDialog1"); |
| return false; |
| } |
| } |