ตัวอย่างให้ป้อนตัวเลขได้ 5-8 ตัว
Code: Select all
function isInt_5_8(value){
var pattern = /^(\d){5,8}$/;
return ret = (pattern.test(value)) ? (1) : (0);
}
Moderators: mindphp, ผู้ดูแลกระดาน
Post by mindphp » 09/08/2011 12:13 am
Code: Select all
function isInt_5_8(value){
var pattern = /^(\d){5,8}$/;
return ret = (pattern.test(value)) ? (1) : (0);
}
Post by kabongpech » 17/12/2011 2:45 am
Post by mindphp » 17/12/2011 12:15 pm
Post by pausible » 14/03/2012 10:53 am
Return to “AJAX Javascript Library - jQuery”
Users browsing this forum: No registered users and 2 guests