I have a java page i am trying to invoke an onblur event.
<select onblur=validate(this.value) style="Z-INDEX: 101; POSITION: absolute; WIDTH: 165px; TOP: 105px; LEFT: 112px" id=SELECT1 dataSrc=#SSE_Survey dataFld=Q1 size=1 name=Happy datafldname="Q1" databindingtype="Database">
<option selected value="Please Choose">
Please Choose
</option>
<option value=Y>
Yes
</option>
<option value=N>
No
</option>
</select>
Calling the following function
function validate(value) {
if (value = "Please Choose")
alert("Please Enter a correct value in the drop down box");
}
No matter what is chosen in the drop down it always messages with the error, anyone see what i am missing please, this has been ticking me off all day.
Didn't anyone ever tell you? There's one thing you never put in a trap — if you're smart, if you value your continued existence, if you have any plans about seeing tomorrow — there's one thing you never — ever, put in a trap. … Me.
<select onblur=validate(this.value) style="Z-INDEX: 101; POSITION: absolute; WIDTH: 165px; TOP: 105px; LEFT: 112px" id=SELECT1 dataSrc=#SSE_Survey dataFld=Q1 size=1 name=Happy datafldname="Q1" databindingtype="Database">
<option selected value="Please Choose">
Please Choose
</option>
<option value=Y>
Yes
</option>
<option value=N>
No
</option>
</select>
Calling the following function
function validate(value) {
if (value = "Please Choose")
alert("Please Enter a correct value in the drop down box");
}
No matter what is chosen in the drop down it always messages with the error, anyone see what i am missing please, this has been ticking me off all day.
Didn't anyone ever tell you? There's one thing you never put in a trap — if you're smart, if you value your continued existence, if you have any plans about seeing tomorrow — there's one thing you never — ever, put in a trap. … Me.