Thread
:
[SOLVED] Extract text from a dropdown field? Hmm...
View Single Post
#
2
(
permalink
)
Nov 3rd, 2007, 23:29
Rakuli
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]*\]/));
Rakuli
View Public Profile
Visit Rakuli's homepage!
Find all posts by Rakuli
View Blog