0
I am trying to solve a validation problem using Jquery ,but I cannot use jquery’s own lib to do this validation.
So far I managed to do a validation using only jquery ,but I came across the following problem ,when user does not fill the time field,"Required Field" appears on the side of the time field ,but when I will give Ubmit again with the unfilled field ,he repeats the msg again.
Code of the Jquery
$(document).ready(function()
{
    $('#region_btnSave').click(function ()
    {  
        var txtHValue = $("#region_tabVersao_N_txtH").val();
        var emailAddressValue = $("#region_tabVersao_N_txtM").val();
        if (emailAddressValue == '' || txtHValue == '') {
            $("#region_tabVersao_N_txtH").after('<span class="error">Campo Obrigadorio</span>',null);
            return false;
        }
        else {
            //not all text fields are valid
            $("#region_tabVersao_N_txtH").after('', null);
        }
    });
});
Validation field:
<td> 
    <asp:TextBox ID="txtH" runat="server" MaxLength="3" Width="40" />
    <span class="error"></span>
</td>
						
If possible put the full html code.
– GBTX
Sometimes this is related to duplicate files, or a jquery or your own javascript file, tries to check the code on another standalone page and clear of scripts, if the error does not occur, is some duplicate file.
– Jose Edinaldo