So apparently this is what I need:
- $('[id$=boxemailsection1]').val(function(){
-
return $('[id$=hfuseremail]').val();
-
})
On second thought, apparently not, as this:
- $(document).on("click",
'[id$=rbPaymentForSelf]', function () {
-
if (this.checked) {
-
$('[id$=panelSection2]').slideUp();
-
$('[id$=panelSection3]').slideUp();
-
$('[id$=_AddressRows]').slideUp();
-
-
$('[id$=_MailStopRow]').slideDown();
-
$('[id$=lblSSNOrITIN]').text("SSN");
-
-
$('[id$=boxemailsection1]').val(function () {
-
return $('[id$=hfuseremail]').val();
-
})
-
}
- });
...doesn't work (no assignment is made to boxemailSection1).