02.06.2013 Views

DOM Traversal Methods

DOM Traversal Methods

DOM Traversal Methods

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Form Plug-In<br />

<br />

Preferred tactic<br />

loot<br />

<br />

pillage<br />

<br />

burn<br />

<br />

<br />

Viking gear<br />

<br />

horned helmet<br />

longboat<br />

magic goat<br />

<br />

<br />

<br />

<br />

<br />

<br />

To prepare the form for submission, we only need to call .ajaxForm() once, when<br />

the <strong>DOM</strong> is ready:<br />

$(document).ready(function() {<br />

$('#test-form').ajaxForm({<br />

target: '.log'<br />

});<br />

});<br />

[ 220 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!