Top Questions

  • 2.9 Years

    • Category : Jquery
    • Location : Chandigarh
    • Posted On : Jun 25, 2016

    you can make td editable using this code

    Note: Add Table Class editableTable
    $(function () {
        $(".qty").dblclick(function () {
            var OriginalContent = $(this).text();
            var Originalid = $(this).attr('id');
              $(this).html("<input type='text' class='qty' value='"   OriginalContent   "' />");
            $(this).children().first().focusout(function (e) {
                    var newContent = $(this).val();

Add Your Answer

When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.