< Script > // jQuery load function $ ( function () { // set the text box readonly attribute $ ( " : text " ) .attr ( " readonly " , " readonly " ); // click event $ ( " : text " ) .click ( function () { // get a pointer to the parent element of the current element is the father ranking in their old brothers in a few var i = $ ( the this ) .parent () index ();. // I> the eldest son of> the first of several small son var name= $ ( " Table TR: First Child-TD: EQ ( " + I + " ) " ) .html ();
// child element ☆☆☆ siblings parent element the current element var ID = $ ( the this ) .parent ( " TD " ) .siblings ( " TD " ) .find ( " INPUT: First-Child " ) .val (); var username = $ ( the this ) .parent ( " TD " ) .siblings ( " TD: Last-of--Nth type (2) " ).find(" the INPUT " ) .val ();
// dialog window.prompt (title, default value) prompt ( " Modify the above mentioned id: " + the above mentioned id + " , the user name: " + username + " of " + name, $ ( the this ) .val ()); }); }); </ Script >
2019-10-31--11:50:06