YUI setForm(f) и jQuery serialize()
<form onsubmit="return design(this);">
<input type="text" name="design_id" value="1" />
<input type="hidden" name="design_name" value="name" />
{if $design}
<input type="submit" name="update_design" value="Update" />
<input type="submit" name="remove_design" value="Remove" />
{/if}
</form>
кликаю по второй кнопке
function design(f) {
alert(YC.setForm(f)); - design_id=1&design_name=name&remove_design=Remove
}
function design(f) {
alert(jQuery(f).serialize()); - design_id=1&design_name=name
}
и почему jQuery не все возвращает ?
|