Canfo Posted August 21, 2014 Share Posted August 21, 2014 Hi I have a problem with this code on the 15 line and I don´t have idea why: <script type="text/javascript"> $(document).ready(function(){ $("#contenido a").each(function(){ var href = $(this).attr("href"); $(this).attr({ href: "#"}); $(this).click(function(event){ $("#contenido").css("display","none"); /* "contenido" no se ve */ $("#cargando").css("display", "inline");/* "cargando" es visible */ $("#contenido").load(href).fadeIn(700);/* cargamos la página solicitada*/ $("#cargando").css("display", "none");/* "cargando" es invisible */ }); }); <-- LINE 15 --> }); </script> thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted August 21, 2014 Share Posted August 21, 2014 maybe $(this).attr("href", "#"); 1 Link to comment Share on other sites More sharing options...
Canfo Posted August 25, 2014 Author Share Posted August 25, 2014 I resolve the problem, I have this code on a .js file and when you have this you haven´t put tags <script>, that was the problem, thank you for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now