<form action="#" name="my-recept"> <input class="form-control" name="mykal" value="5"> </form> <script> var item =document.querySelectorAll("form[name='my-recept'] [name='mykal']").value; alert(item); </script>