Little question. I've got some JavaScript, and when I click on a feature block it will change the content of some div's. As can be seen from my code underneath, at #pubcontent are some links added to the page.
$("#publications").click(function(){
$("#content").html('<iframe id="idIframe" src="publication/index.html" style="height:594px;width:98%;"></iframe>');
$("#titlepage").html('<img src="../images/pageline.png" style="width:2px; height:50px; vertical-align:middle"/>Home > Publications');
$("#researchcontent").html('');
$("#pubcontent").html('<ul><li><a id="2013" href="#">2013</a></li><li><a id="2012" href="#">2012</a></li><li><a id="2011" href="#">2011</a></li><li><a id="2010" href="#">2010</a></li><li><a id="2009" href="#">2009</a></li><li><a id="2008" href="#">2008</a></li></ul>');
});
This is working. But now, I've got some other code in the same JavaScript file that should be executed when I click on of the links that are part of #pubcontent. But when I click on the links nothing happens. This code is:
$("#2013").click(function(){
$("#content").html('<iframe id="idIframe" src="publication/index.html#2013" style="height:594px;width:98%;"></iframe>');
$("#titlepage").html('<img src="../images/pageline.png" style="width:2px; height:50px; vertical-align:middle"/>Home > Publications > 2013');
So to summarize. I press on x and y is shown. If I press on the links in y I want to see z. but I can't find a way to make the 'z'-parts appear. I'm not sure if this explanation helps.. but anybody a suggestion?