Thread: abbr problem
View Single Post
  #1 (permalink)  
Old May 7th, 2008, 01:19 PM
todd2006 todd2006 is offline
Contributing Member

 
Join Date: Mar 2008
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
todd2006 is an unknown quantity at this point
Default abbr problem

Hi,

I have a textbox so if someone types Cars i want to abr it to CR, If someone types financial i want to FCR

so here is my code
Code:
var getabrdata=document.frm1.abrfield.value;

getabrdata=getabrdata.replace("Cars", "CR");
getabrdata=getabrdata.replace("financial", "FCR");
but its not working can someone tell me what i am doing wrong

todd
Reply With Quote