krishnan_sn
01-14-2004, 10:59 AM
hi,
Is Trim() function available in JScript. the problem i am facing is if the user presses a space bar the code below will not work. so in order to eliminate the blank spaces i want to use the trim function or similar to that....if possible please give me the sample code..
if(f.txttitle.value == "")
{
alert("Enter the Title for the Notice Message");
f.txttitle.focus();
return false;
}
thanks & regards
Is Trim() function available in JScript. the problem i am facing is if the user presses a space bar the code below will not work. so in order to eliminate the blank spaces i want to use the trim function or similar to that....if possible please give me the sample code..
if(f.txttitle.value == "")
{
alert("Enter the Title for the Notice Message");
f.txttitle.focus();
return false;
}
thanks & regards