jQuery user input to control option of one jquery function
Posted
by Tristan
on Stack Overflow
See other posts from Stack Overflow
or by Tristan
Published on 2010-04-27T22:31:50Z
Indexed on
2010/04/27
22:43 UTC
Read the original article
Hit count: 300
Hello,
I'd like an input to control that :
jQuery.ajax({
type: "get",
dataType: "jsonp",
url: "http://www.foo.com/something.php",
data: {numberInput: "NUMBER I WANT TO CONTROL" },
On the HTML side I've
<input type="text" id="jqueryControl" />
I want when a user enters a number into the jqueryControl
to insert it in the .ajax function and reload the data according to the new value entered.
Any idea to do that please ? Thanks
© Stack Overflow or respective owner