I have a textbox as shown below,
<input type="text" name="company" id="company" required />
My question is, I want to get the values inside the textbox using jquery whenever I typed or selected the values.
I have tried a lot but no effect. The jquery i have tried is below,
$(document).ready(function(){
var input = $('#company').val();
$("#tag").autocomplete("autocomplete1.php?str="+input, {
selectFirst: true
});
});
The above code has no effect. Is there any method. Kindly help. Thanks in advance.