Possible Duplicate:
get querystring with jQuery
How do I get the value of a querystring into a textbox using jQuery?
Lets say the url is http://intranet/page1.php?q=hello
I would like the "hello" to be in the textbox.
How do I get the value of a querystring into a textbox using jQuery? Lets say the url is http://intranet/page1.php?q=hello I would like the "hello" to be in the textbox. |
|||
marked as duplicate by GSto, David Thomas, CMS, George Stocker♦, Graviton Sep 27 '10 at 3:39This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
|||
In my programming archive I have this function:
You can use that to get the query string value and put in a textbox:
|
||||
|
Use the function listed in the answer to this question:
And then just do something like this:
|
|||
|
Take a look at ths url: http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html |
|||
|
textarea
than js/jQuery. – David Thomas Sep 24 '10 at 15:09