I am trying to set text and value for both td tag and input tag at the same time. But after clicking the button, td tag is filled with data and input tag disappears.
What is the best solution for this?
function myfunction() {
$("#sel").val("Kannan");
$(".sel").html("Kannan");
}
Run code snippetExpand snippet
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)