[jQuery] DOM problems with jQuery's Form Plugin
Hi,
The following code works:
$(document).ready(function() {
// bind 'form2' and provide a simple callback function
$('#form2').ajaxForm(function() {
alert("DEBUG Test");
});
});
However the following does not:
$(document).ready(function() {
// bind 'form2' and provide a simple callback function
$('#form2').ajaxForm(function() {
// Server should send data back in json encoding
target: '#container'
});
});
No broken responses. My <div id="container"></div> just does not get
updated. My server sends back:
echo "DEBUG MESSAGE";
Firebug shows the echo'd response.
Totally would appreciate any help.
- sf