I am trying to target a div nested within some php with js, but no matter what I do, I can't seem to target it. Here is the code for reference: php:
echo "<li>"."<div id=\"countryclick\">". "<a href=\"?Continent=$Continent&Country=$Country\">" . $Country . " ". "</a>" . "</div>"."</li>";
js:
$("#countryclick").click(function(){
$("#country").hide();
$("#city").show();
});
Any ideas? Thanks in advance!