| re: Populating a text box with a value from a function
Kermit Piper said on 16/03/2006 2:27 PM AEST:[color=blue]
> 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.[/color]
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. :-)
--
Rob |