PHP validation for multifield Jeditable form
Posted: Thu May 20, 2010 5:21 pm
Has anyone tried doing this? I can't figure out how to do this. Basically I don't know how to dynamically assign the name attribute of the Jeditable created input field.
Call to Jeditable plugin function
I know this isn't a jQuery forum but...Any help would be awesome...been struggling with this all day.
the HTML code.
Call to Jeditable plugin function
Code: Select all
<script type="text/javascript" charset="utf-8">
$(function() {
$(".edit").editable("updateProfile.php", {
submit : "Save",
cancel : "Cancel",
cssclass: "inlineEdit",
name : //Dynamically assign the name here...it should be name: 'email' for Email and name: 'name' for Name
});
});
the HTML code.
Code: Select all
<li><label>Email:</label><div class='edit' id=Email' style='display:inline;'>Email"</div></li>;
<li><label>First Name:</label><div class='edit' id='Name' style='display:inline;'> Name</div></li>;