I try to get input value of my form. I already try many solutions but still no results. Here is form input:
<input class="form-control" id="account_ya_price_list_url shop_key_input" name="account[ya_price_list_url]" type="text" style="/* margin-right: 20px; */">
Js:
console.log($('#shop_key_input').html());
console.log($('#shop_key_input').val());
console.log($('#shop_key_input').value);
var div = document.getElementById('shop_key_input');
var div2 = document.getElementsByName('account[ya_price_list_url]').first;
console.log(div2.innerHTML );
console.log(div.innerHTML );
console.log(div2.value );
console.log(div.value );
All of this or undefined or null. What I am doing wrong?