I want to create a link with the following href attribute:
app\process?val=12000
but the value for the val parameter (in this case 12000) must come from the value of a textbox on the page.
I know that I can use $(#textbox).value() to get the value, but I need to change the link when the value changes.
Here’s an EXAMPLE of something you could try.
HTML:
jQuery:
In the OP you have
$(#textbox).value(), but there are a few things wrong with this. First the selector needs to be wrapped in quotes like$("#textbox")where textbox is the ID of the element. Also,.value()is not a function in jQuery and is actually.val()