select input by name javascript
var element = document.querySelector("form[name='second'] input[name='secondText']");
select input by name javascript
var element = document.querySelector("form[name='second'] input[name='secondText']");
jQuery select elements by name
$('[name=myElementName]') //match any element with name=myElementName. i.e: <div name="myElementName"></div>
how to get input name in javascript
// Using jQuery:
$('#id').attr('name');
// Using vanilla js:
let name=document.getElementById("id").name;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us