problem in load() function
I'm facing a problem with load()
function of jQuery.
Here is my code:
$("#addButton").click(function(){
var textbox1 = $("#textbox1").val();
alert(textbox1);
$("#stage").load('/poll_view3.php', {"textbox1":textbox1} );
});
Where addButton
is the id of a button and textbox1
is the id of a text box.
poll_view3
should be loaded inside a div tags with id "stage" as mentioned above but poll_view3
is not loaded.
Pl开发者_如何学Goease help me out solving this, thanks.
$("#stage").load('/poll_view3.php', {"textbox1":textbox1} );
i thought in this line you entered wrong URL make it write here
$("#stage").load('../poll_view3.php', {"textbox1":textbox1} );
and if doesn't works then you can use jQuery.ajax()
function for this
精彩评论