I have two text boxes placed in two divs if user clicks on button i will show error message to user that they are mandatory but againg if user types the text in the textbox i need to hide the error message using jquery how can i do this
<div id="Div1" class="control medium border-left-radius">
<div class="messageValidation" id="DivError1">Txt1 is mandatory</div>
<input type="text" id="txt1" required />
</div>
<div id="Div2" class="control medium border-right-radius" style="border-left:0;">
<div class="messageValidation" id="DivError2">Txt2 is mandatory</div>
<input type="text" id="txt2" required />
</div>
<div class="required float-left">*</div>