jQuery: The Write Less, Do More JavaScript Library

Problems with two .ajax calls on the same page

View: New views
1 Messages — Rating Filter:   Alert me  

Problems with two .ajax calls on the same page

by jonas.internet@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I'm seeing a strange problem(?)

1. <a href="javascript:settings('foobar');">foobar</a>
2. The js-function settings(page) loads a page and puts the content in
a #div with .ajax
3. The content loaded contains a form with id="blahform"
4. $('#blahform').submit(function() { alert("foo"); });  doesn't work,
why?


Regards,
jonas



LightInTheBox - Buy quality products at wholesale price