.load and Form *NOOB*
.load and Form *NOOB*
Hi, i'm really new to jQuery and i started using the .load method and it works great, i have an index.html page and i call other pages and everything is ok. The problem i'm stuck with is that one of the pages i call has a form and i want to attach events to the form so i can use it with ajax, my question is where do i do this?? and suppose the other pages have forms as well, how can i do with that?
The way i'm loading the pages is this, i have links <a href="page1.html">page 1</a> on my index and they have this event, $('a').click(function(){$('#content').load(this.href);}). Hope i made myself clear, thanks for any help i may get. Sorry for any mistake in my english!