hai
how to ignore space in text input
i have a textbox for Demand Draft no in which only 6 characters are allowed my script accepts 6 numeric correctly but it also accepts space. i need validate it.
![]() | It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!) |

|
|
|
|
if(!(txt.indexOf('')==-1))
{
alert('There\'s a space');
}
str.match(/^[\d]{6}$/)

Users browsing this forum: No registered users and 4 guests