Answers for "get value with input name"

9

jquery input name value

var target = $('input[name="hoge"]').val();
Posted by: Guest on June-09-2020
0

how to get input name in javascript

// Using jQuery:
$('#id').attr('name');
// Using vanilla js:
let name=document.getElementById("id").name;
Posted by: Guest on April-07-2021

Code answers related to "get value with input name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language