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>;