View Single Post
  #2 (permalink)  
Old Nov 3rd, 2007, 23:29
Rakuli's Avatar
Rakuli Rakuli is offline
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Extract text from a dropdown field? Hmm...

If it will always be numbers you could use a simple regex...

alert(whereveryougetthetextfrom.match(/\[[0-9]*\]/));
Reply With Quote