there is an input type box as this:
<input type="text" name="xlnum" id="xlnum" />
<input type="submit" value="Submit" id="submit" />
the allowed value that are inputted in the text box is number. but it style must be as this:
number1,number1,number1,number1,number1.... eg(1,2,,12,35,654,....)
if the user types the wrong style. i want to give him a tip use jquery.how do i do. i don't know how to write the if
part.
eg:
$('#submit').click(function() {
if($('#xlnum').val()=='' && ...)...
})