I am encountering a simple issue. I want to initiate an ajax call using the following button
<input type="submit" value="My Button" id="get" />
The challenge is that I prefer not to use a button, but rather plain text for activation instead of a clickable button.
Here is the complete code snippet from a small script.
$("#load_get").click(function(){
$("#result")
.html(ajax_load)
.load(loadUrl, "language=php&version=5");
});
//$.get()
$("#get").click(function(){
$("#result").html(ajax_load);
$.get(
loadUrl,
{language: "php", version: 5},
function(responseText){
$("#result").html(responseText);
},
"html"
);
});