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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -