ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Clear text box on button click not working
Title:
B
I
{code}
?
I have used textbox of awesome in my view as : - <div class="col-md-6 col-xs-6 form-group"> @(Html.Awe().TextBox("txtMinDealSize")) </div> I clear it on a button click using jquery like this :- $("#txtMinDealSize").parent('.awe-field').find('input[type=text]').val(''); textbox empties on click, but when I click back on textbox the previously entered text is shown again, it is not cleared. How to completely clear the textbox ?
Save Changes
Cancel
Tanuj Shrivastava
asked at 25 Jul 2016
add change() $("#txtMinDealSize").parent('.awe-field').find('input[type=text]').val('').change()
at 25 Jul 2016
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK