JRockFL
asked on
button click
Are there any differences between "button" and "input" for the click event?
My click event is not firing.
<button id="ctl00_ContentPlaceHold er1_btnSub mitOrder" class="btn">
<span></span>Submit Order</button>
$("[id$='_btnSubmitOrder'] ").click(f unction () {
if (validateNotes) {
return true;
}
else {
return false;
}
});
My click event is not firing.
<button id="ctl00_ContentPlaceHold
<span></span>Submit Order</button>
$("[id$='_btnSubmitOrder']
if (validateNotes) {
return true;
}
else {
return false;
}
});
ASKER
This is the first time I'm using the button control and I dont have the option of changing to input.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cool, that did it!
I don't think i've ever use the button control. But with input I would do it like this :
The way I would select a button like you are trying to is :
<input type="button" id="ctl00_ContentPlaceHold
$("input[id*=_btnSubmitOrd
if (validateNotes) {
return true;
}
else {
return false;
}
});