I have 2 URL links. One works and the other one – which is called via PHP – does not. the PHP link is missing an apostrophe '. How can I fix this?
<?php print "[ <a href='javascript:change_url($urls)'>test2</a>"; ?>
<a href="javascript:change_url('test2.html')">test2</a>
<script>
$(document).ready(function(){
$("#content").load("test.html");
});
function change_url(file){
$("#content").load(file);
}
</script>
<div id="content"></div>
Try