Answers for "js getelementsbyname"

4

select input by name javascript

var element = document.querySelector("form[name='second'] input[name='secondText']");
Posted by: Guest on July-08-2020
2

check the doc name in javascript

var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );
Posted by: Guest on May-31-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language