| |
Hazzard
Posts: 2
Score: 0
Joined: 6/28/2005
From:
Status: offline
|
i have been trying to figure out how to make a TextBox on my page dynamicaly update itself every time the user changes which city is selected on the listbox. this is what i have so far "City" is the name of the listbox <% Dim CityID CityID = 0 function City_onchange() CityID = CInt(CityID) + 1 Response.Write(CStr(CityID)) end function %> <input type="text" name="Long" Value=" <% call City_onchange() %> "></input> the output looks like this, </select> <p align="left">Long: <input type="text" name="Long" Value=" 1 "></input> so i know it is working but when i change the selection on the listbox, nothing happens. do i need to have the page refresh somehow or maybe even just the textbox? any help will be very helpful. ?:)
|
|