Hi everybody,
I think I need a javascript for the following problem. I could use some ASP, but that would mean that the page has to ben sent to server again, and for some reasons I can’t do that.
I’m using a listmenu where people can select a car brand. But if the car brand that they need isn’t available in the list, they can enter the car brand in a textfield.
So I thought, let’s create a hiddenfield with some clever javascript that checks if the textfield contains any text. If yes put the value of the textfield in the hiddenfield. If it doesn’t put the value of the listmenu in the hiddenfield.
Then bind the hiddenfield to some asp-code for the insert in the database and my mystery is solved. But now comes my problem, how can I create a javascript like discribed??????
I hope someone can help me out.