Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery/ajax and multipl div’s Re: jquery/ajax and multipl div’s

#58696
nanook
Member

Thanks Rob!! It work perfect! For anyone else that’s learning jquery this is what I did. Thanks again Rob!

<script type="text/javascript">
$(function(){
$(‘li a’).click(function(){
id=$(this).attr(‘id’);
$("#content").load("pages.php?o="+id+"");
return false;
});
$(‘li a’).click(function(){
id=$(this).attr(‘id’);
$("#extra").load("images.php?o="+id+"");
return false;
});
});