I have an asp.net webform with a textbox. The value of the textbox is "False" and has been verified by viewing the page source in the browser.
Despite being set to false the following code results in beginDateReqd being set to false and consequently, DateParms being displayed when it shouldn't be.
var beginDateReqd = Boolean($('.HiddenBeginDateTimeRequired').val());
if (beginDateReqd) {
$('.DateParms').show();
}
What am I doing wrong? Thanks!