Hi,
I have programmed a var (contains postcode information) ,however I wish to crop it down so that I only get returned the value's before a " " has been entered e.g.
If a value of "SO22 6NT" is entered I only want the SO22 in the var,
I can do this in Basic using Instr but dont know how to do this in Javascript, can anyone point me in the correct direction,
Thanks
Nick Gibbons
I have programmed a var (contains postcode information) ,however I wish to crop it down so that I only get returned the value's before a " " has been entered e.g.
If a value of "SO22 6NT" is entered I only want the SO22 in the var,
I can do this in Basic using Instr but dont know how to do this in Javascript, can anyone point me in the correct direction,
Thanks
Nick Gibbons
Comment