javascript - How Does a User Interact with HTML Table Cell <td>? -
i'm working following code web page. on page itself, user able double-click cell in table (the <td> in code below), , enter value.
is there attribute, or part, of html indicates user can interact <td> element? or functionality come source (like javascript)?
<tr class="ig_290640c5_r2" id="uwgbulkimportlist_r_1" style="height: 20px;" alt="true object="[object object]"> <td class="" id="uwgbulkimportlist_rc_1_0" object="[object object]" unselectable="on" _hasmouse="false"> <nobr> text - empty text node
the html has no indication of contenteditable or attribute, element make td able take input. best guess you've given, it's done via javascript.
in javascript, there may function like
$(document).ready(function() { $('td. [some properties] ').each(function() { $(this).attr( { 'contenteditable': 'contenteditable' } ); // or attach <input> field } ); } ); that's best guess, take grain of salt speculation.
Comments
Post a Comment