View Single Post
Old 11-28-2007, 05:09 PM   #19
The Captain
Tri-State Post Whore
 
The Captain's Avatar
 
Join Date: Jan 2007
Location: West Philly - FBG$
Member #3369

My Ride:
Prelude

iTrader: (2)
This is what my friend had to say, hopefully it is useful.

I haven't done a lot of stuff with javascript, but maybe you just overlooked something

>var locinp = document.ibform.location;

this chooses location section right?

>var locval = locinp.value;

get the value

>var regs = 0;
>if(locval.match(/##(\d+)##/i)){
>regs = parseInt(RegExp.$1);
>locinp.value = locinp.value.replace(/##(\d+)##/i,'');

you replace the value, seems to be what you described above, you probably just have to change locinp = document.ibform.*, make * whatever you wanted.

Is that what you were looking for?
The Captain is offline   Reply With Quote