javascript - How to convert some td from a table into textbox when a button is clicked -
javascript - How to convert some td from a table into textbox when a button is clicked -
i have table 4 rows , 4 column. have button called edit. when click on button, want lastly 2 columns of table changed textboxes values of columns , save button save them.
i not have identification individual tds facing little problem in changing them textboxes.
in html5 there feature called content editable.
you can create 1 html element editable adding 1 attribute html element
take illustration of td element, if want create editable, add together 1 "contenteditable" attribute td element
<td contenteditable>some string</td>
in jquery can add together contenteditable attribute this
$("td#target").attr("contenteditable", "");
after making contenteditable have click on html element, appear editable html element.
hope helpful.
javascript jquery html
Comments
Post a Comment