Hello, get data of database and show it with jQuery and without refreshing, how is it - Dynamic?
blog/get_quote?comment_id=1
my js code:
$(".comment_quote").click(function(){
var dataString = 'entry_id=' + entry_id + '&comment_body=' + comment_body + '&comment_name=' + comment_name + '&comment_email=' + comment_email + '&comment_url=' + comment_url;
$.ajax({
type: "GET",
url: "/blog/get_quote",
data: dataString,
cache: false,
dataType: "json",
success: function(html){
$('#quote_load').html("<div id='message'><div class='get'><div class='comment_name'><h5>" + comment_name + "</h5></div><div class='comment_body'>" + comment_body + "</div></div></div>");
$('#message').hide().fadeIn(1500);
}
});
return false;
});
it have error:
[object HTMLInputElement]
[object HTMLTextAreaElement]