Public paste
Undefined
By: Guest | Date: May 27 2010 09:39 | Format: None | Expires: never | Size: 245 B | Hits: 484

  1. HTML:
  2. <td id="catnaam1">Text..</td>
  3. <td id="catnaam2">Text..</td>
  4. <td><img border="0" src="img/edit.gif" onclick="MakeEditable('1')" /></td>
  5.  
  6. JS:
  7. function MakeEditable(nr) {
  8.         document.getElementById('catnaam' + nr).innerHtml = 'test!';
  9. }