Guest User

Untitled

a guest
Feb 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. var j = 0;
  2.  
  3. while (j <= i) { //i is the variable passed from php, containing the number of useres
  4.  
  5. j++;
  6.  
  7. $('#btnEdit'+j).click(function() {
  8.  
  9. $("#prename"+j).removeAttr('disabled');
  10. $("#surname"+j).removeAttr('disabled');
  11. $("#function"+j).removeAttr('disabled');
  12. $("#prefix"+j).removeAttr('disabled');
  13. $("#phone_number"+j).removeAttr('disabled');
  14. $("#email"+j).removeAttr('disabled');
  15.  
  16.  
  17. });
  18.  
  19.  
  20. }
  21.  
  22. <label>Prename</label>
  23. <input name="prename" id="prename<?php echo $i; ?>" value="<?php echo $row['db_prename_value']; ?>" maxlength="100" type="text" placeholder="Prename" disabled="disabled" />
  24.  
  25. <input type="button" id="btnEdit<?php echo $i; ?>"
  26. name="button<?php echo $i; ?>" value="Edit"></input>
  27.  
  28. $('#btnEdit'+j).click(function() {
Add Comment
Please, Sign In to add comment