|
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?
|