jQuery Click Cell to Change into Text Box

前端 未结 3 998
醉酒成梦
醉酒成梦 2020-12-30 16:37

I have been looking on Google and StackOverflow but haven\'t been able to find what I\'m after as of yet. If someone could point me in the right direction that would be grea

3条回答
  •  渐次进展
    2020-12-30 17:35

    One possible way:

    $('td:contains("(Notes Text)")').click(
    
      function() {
        var text = $(this).text();
        $(this).text('');
        $('