I'm getting close; after floundering around on an isolated promontory and sending forth filament, filament, filament out of myself (as recorded here), I added this to the end of the WebPage's *.ascx file (after the <%@ Assembly, <%@ Register, <%@ Import, and <%@ Control jazz, as well as an
<script>
$(document).ready(function () {
alert("How does that grab you?");
var s = $("#radbtnEmp").toString;
alert(s);
var t = $("#radbtnEmp").valueOf;
alert(t.toString);
$('input:radio[name=radbtnEmp]:checked').change(function () {
if ($("input[name='radbtnEmp']:checked").val() == 'Employee?') {
alert("radbtnEmp checked");
}
else {
alert("radbtnEmp not checked");
}
});
});
</script>
...and I do see "How does that grab you?" when the page loads, as well as a couple of other alerts like so:
But I'm still not seeing a response to what I really need to respond to, that is the change event of the radio button (after toggling it from off to on).
Is there something wrong/missing with this jQuery?
Note: The RadioButton is created and assigned the ID like so:
var radbtnEmployeeQ = new RadioButton
{
CssClass = "dplatypus-webform-field-input",
ID = "radbtnEmp"
};