I want to set the jQuery load target. The below code is work.
<script>
$(document).ready(function() {
$(".first").click(function(){
var str=$(this).attr("value"); /
$(".sencond").hide();
$("#shows").html("wait ... ");
$("#shows").show();
$("#shows").load('load.php?str='+str);
})
})
</script>
I want to change the load target to $("#shows").load("'+str+'.php"); But this isn't work.
What 's wrong?
$("#shows").load( str+ ".php")