question

Farzana_Tayeb avatar image
Farzana_Tayeb asked

If else statement in javascript

function UpdateCq25() { if (document.getElementById('<%=cmbq25.ClientID%>'). value = "1") { document.getElementById('<%= txtCcycle.ClientID%>').value = (0.0721); } Else if (document.getElementById('<%=cmbq25.ClientID%>'). value = "2") { document.getElementById('<%= txtCcycle.ClientID%>').value = "0"; } } onchange="javascript:UpdateCq25();" Here when run this site.Value change in if statement but else statement does not work,what's the problem.
asp.net
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ThomasRushton avatar image ThomasRushton ♦♦ commented ·
I would suggest asking in a programmers' Q&A site, such as one of the StackExchange sites.
0 Likes 0 ·

0 Answers