Re: [jQuery] Function help

2010-01-12 Thread admin
automatically by adding a class that is observed. $(document).ready(function(){ if($(".addRecord").length) { addRecord(); } }); > ---Original Message--- > From: Dave Maharaj :: WidePixels.com > To: jquery-en@googlegroups.com > Subject: [jQuery] Function help >

[jQuery] Function help

2010-01-12 Thread Dave Maharaj :: WidePixels.com
I have this function: $('#new').live('click', addRecord); function addRecord() { var data = $('#add').serialize(); $.ajax({ type: "post", url: "/manage/add", data: data, dataType: 'json', success: function(response){ if (response.status === true