jquery - having problems passing javascript variable to php file in the url -
i have code right :
$(document).ready(function() { var ktitle = $('.hiddentwo').text(); $('div#tab2').load('morefour.php?title=ktitle'); });
but php file doesn't seem getting variable...am doing wrong?
i echo in php file , see text. when echo $ktitle in php file 'kitle'...that should not happening :p. stupid question, want know how store variable in url.
$('div#tab2').load( 'morefour.php?title=' + encodeuricomponent(ktitle) );
Comments
Post a Comment