How can I remove the leading spaces in a variable within an a ASP page?
This is what I'm trying to do. I have a dropdown from which a suer
will make a selection. Then I am comparing the selected value another
hardcoded value. like this:
if (document.form1.cmbCenter.value=="" &&
document.form1.cmbDivision.value == "Clinical Services")
{
do something.
}
But it seems to me that the document.form1.cmbDivision.value lenght is
longer than "Clinical Services". That is why I want to eliminate any
leading spaces to document.form1.cmbDivision.value .
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/