Guest
Public paste!

Little dynamic form function

By: a guest | Mar 22nd, 2010 | Syntax: JavaScript | Size: 0.25 KB | Hits: 68 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. // After inserting the table
  2. $("td").click(function(){
  3.         var text = $(this).text();     
  4.         $(this).before("<td><form action=\"\" method=\"\"><input type=\"text\"/ value=\"" + text + "\"><input type=\"submit\"/></form></td>");
  5.         $(this).remove();
  6.                                
  7. });