Web programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Web programming

How can i select data from table and insert them to another table by clicking on a hyperlink( the two tables are in the same database) Example: click on accept(hyperlink) >>accept the student and insert the accepted students into another table

27th Jun 2021, 7:49 PM
Batoul Kharrouby
Batoul Kharrouby - avatar
1 Answer
+ 1
you need to handle event listeners and select element (TD -- Table Data / cell) through DOM: then you will be able to got the textContent / innerHTML / childNodes / children properties and move them to another selected element... provide your code if you need more accurate help, or say if you need some JS specific references (or dive yourself in web / mdn website to find relevant information ;P) https://developer.mozilla.org/en-US/docs/Web/JavaScript https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model
27th Jun 2021, 8:55 PM
visph
visph - avatar