I have a bit of jquery code. What I want to do is hide the textbox but make the value in the textbox equal the number 1. The textbox does hide but it does not make the textbox value equal “1”. How is it suppose to be written?
Code is below:
if (clickedNumber === 'Yes or No') {
$('#answerYes').show();
$('#answerNo').show();
$('#na').show();
$('#numberAnswerTxt').val() == '1';
$('#numberAnswerTxt').hide();
}
“#numberAnswerTxt” is the id of the textbox.
Thank you
1 Answer