Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi plz help me any one .
How to create textbox using jquery with validations
iam enter textbox text enter only numbers and that numbers only 2 digts numbers ?
Posted

1 solution

Setting Max Length using JQuery
JavaScript
$(document).ready(function()
{
    $("#textBoxId").attr('maxlength','2');
});


For numbers only textbox. Try this link
How to allow only numeric (0-9) in HTML inputbox using jQuery?[^]

Hope this helps.


[Edit member="Tadit"]
Link text added to reflect the article title.
[/Edit]
 
Share this answer
 
v3
Comments
Member 10192549 19-Aug-13 9:30am    
Thank You very much.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900