I have a very simple problem. I’m trying to make an ajax call using the following button
<input type="submit" value="My Button" id="get" />
The problem is that I don’t want a button, I need plain text to stand in rather than a button that gets clicked.
Full code. It’s just 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"
);
});
Here’s an example if I understand your question correctly: