Populating a text box with a value from a function

K

Kermit Piper

Hello,

I have a script which populates a second drop-down list based on the
value of the first
(States-->Cities). This is pulling from a table and along with the
Cities are corresponding tax rates. What I need to do is parse out the
tax rate (i.e. .0825) and populate a textbox with this value. If
someone can show me an example of how I could handle this I would
greatly appreciate it. The part I'm really unsure of is how I would
parse out the value? Would it be best to just display the tax rate
along with the city and so some kind of substringing or is it possible
to pass the tax rate value which is pulling from a separate column in
as a hidden value? I think the latter would be preferable.

Thanks,
KP
 
R

RobG

Kermit Piper said on 16/03/2006 2:27 PM AEST:
Hello,

I have a script which populates a second drop-down list based on the
value of the first
(States-->Cities). This is pulling from a table and along with the
Cities are corresponding tax rates. What I need to do is parse out the
tax rate (i.e. .0825) and populate a textbox with this value. If
someone can show me an example of how I could handle this I would
greatly appreciate it. The part I'm really unsure of is how I would
parse out the value? Would it be best to just display the tax rate
along with the city and so some kind of substringing or is it possible
to pass the tax rate value which is pulling from a separate column in
as a hidden value? I think the latter would be preferable.

There are a thousand ways to skin this cat... post a small sample of
what you have so far and maybe someone will recommend a good way to
extend it - maybe some bad ways too... we like to give value for money
here. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,038
Members
48,768
Latest member
first4landlord

Latest Threads

Top