jQuery problem
THE PROBLEM IS - when I click the "#inactive" id, the "#active-page" disappears but the "#inactive-page" does not appear. :confused: :confused: :confused:
<script>
$(document).ready(function(){
$("#inactive").click(function(){
$("#inactive").attr("id","active-swap");
$("#active").attr("id","inactive");
$("#active-swap").attr("id","active");
$("#active-page").attr("id","inactive-page-swap",function(){
$("#inactive-page").attr("id","active-page");
$("#inactive-page-swap").attr("id","inactive-page");
});
});
});
</script>
Please help me!!!
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu