Skip to content Skip to sidebar Skip to footer

X-editable Resetting Fields

i have the following html/php code (php tag ommited) $user = array( 'name' => Null, 'address' => Null );

Solution 1:

This seemed to work.

http://jsfiddle.net/U33kT/

I'm not sure the difference, except that I chose all editables (JS line 6):

$('#user a').editable('setValue', null);

But, I tried with single items:

$('#cust_name').editable('setValue', null);

and it seemed to work as well.

Hope this helps.

Post a Comment for "X-editable Resetting Fields"