Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
I can't reach Input.value on table

I need to get value of input in table cell. but when ı use innerHTML and value i just get undefined.

function myDeleteFunction(id) {
var sıra=id;
//var sıra=document.getElementById("sıraınput").value;
var tablesepet = document.getElementById("sepet");
for (var i = 1; i < tablesepet.rows.length; i++) {
    alert(tablesepet.rows[i].cells[0].innerHTML.value);
    /*if (tablesepet.rows[i].cells[0].innerHTML==sıra) {
        alert("fff");
        //tablesepet.deleteRow(sıra);
    }*/
}


count=count-1;

}

//I tried thoose 

tablesepet.rows[i].cells[0].innerHTML.value
tablesepet.rows[i].cells[0].value
tablesepet.rows[i].cells[0].innerHTML

//nothing work

this is deletefunction and this is my table enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use querySelector to get the input element

tablesepet.rows[i].cells[0].querySelector("input, select, textarea").value
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!