Relative Content

Tag Archive for htmljquery

Crea varias instancias con jquery

Soy nuevo en este maravilloso mundo, Tengo un problema en mi pequeño sistema, estoy cargando el div=contenedor con jquery con la accion load… $(“.”+contenedor).load(contenido);
pero al hacer click varias veces desde el menú, me genera varios objetos, cuando quiero editar un registro me aparece en la consola la cantidad de veces que hice click desde el menú.

localStorage in jQuery doesn’t update unless the page is refreshed

So I have this program that’s supposed to keep track of and react to events in a website, and the counter works fine and all that, but for some reason my events counter doesn’t react to an event change. So, I have my eventsCounter set to 1 and it’s supposed to do it’s own little song and dance so to speak and you double click the thingy and it’s supposed to tick the eventsCounter up by one so something different can do it’s thing. But the thing is, the website just acts like eventsCounter is still 1 instead of 2, so it’s doing a little song and dance that shouldn’t be happening. I check the console and it says eventsCounter = 2 even though it’s acting like eventsCounter = 1. And I’m like … what?! Okay… must be an issue with how I’m doing it so I refresh the page and lo and behold! It’s doing what it’s supposed to with an eventCounter of 2. Please help!!