How can I set the value of a textBox value using Javascript?
I can read the value of the txtUserName field in my AJAX method. But in the two commented rows give an error:
function handle_geolocation_query(position) {
// $("input#MainContent_txtEnlem").val() = position.coords.latitude;
// $("input#MainContent_txtBoylam").val() = position.coords.longitude;
PageMethods.SendLocation($("input#MainContent_txtUserName").val(), position.coords.latitude, position.coords.longitude);
}
I'm using jQuery 1.4.1.