Skip to content
Advertisement

Tag: html-table

Show JSON data in table in selectbox

There is a JSON data and I have displayed each key value as a column in the table. I want to export data from JSON to each column as a selectbox. i.e. I want to show all corresponding values ​​of “country” in JSON as selectbox in COUNTRY column. My JSON data My Javascript How can i edit? Answer Do you

Get cell Value of Table html

I have this code (opt1) to get the text of the cell, which is clicked, but this alerts all of the objects in the table as its in a loop. But when I place it outside the loop I just get a random text from the table and not the one which is clicked (opt2). I need the textContent of

Advertisement