[jQuery] my jquery form plugin not works
this is the code
<fieldset>
<legend>Edit Organization Department Category</legend>
<script type="text/javascript">
// wait for the DOM to be loaded
$(document).ready(function() {
// bind 'myForm' and provide a simple callback function
$('#orgdepartmentcategory').ajaxForm(function() {
//var pidval;
//pidval = document.getElementById
('hr_tbl_marriages_hr_tbl_particulars_id').value;
alert("Organization Department Category Updated!");
// $('#lists_id').load('lists/id/'+pidval).fadeIn
("slow");
// document.getElementById
('orgdepartmentcategory').reset();
});
});
</script>
<?php //include_partial('form', array('form' => $form)) ?>
<form id="orgdepartmentcategory" name="orgdepartmentcategory"
action="<?php echo url_for('orgdepartmentcategory/'.($form->getObject
()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?
id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form-