hello,
i hav this javascript,
it label value is 110 and i type in text box 109 it is not validating that 109 is less than 110, within 100 it is comparing the value but after 100 it is not valida
<script>
function CheckForHardCodedValue(source, arguments)
{
var tID = '<%= TextBox1.ClientID %>';
var lID = '<%= Label4.ClientID %>';
if (parseFloat(document.getElementById(tID).value) > parseFloat(document.getElementById(lID).innerHTML))
arguments.IsValid = true;
else
arguments.IsValid = false;
}
</script>
<asp:CustomValidator ID="CustomValidator1" runat="Server" ControlToValidate="TextBox1" Display="Dynamic" ClientValidationFunction="CheckForHardCodedValue" CssClass="text-danger" ErrorMessage="Your Bid must be greater then current bid." Text="Your Bid must be greater then current bid" ValidationGroup="mybid"></asp:CustomValidator>