PHP validation for multifield Jeditable form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dhui
Forum Newbie
Posts: 14
Joined: Mon May 10, 2010 1:42 pm

PHP validation for multifield Jeditable form

Post by dhui »

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

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
  });
});
I know this isn't a jQuery forum but...Any help would be awesome...been struggling with this all day.

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