Automcomplete not enabled
I added autocomplete using the code shown below:
- <input type="text" id="process" name="procname" value="press enter" >
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script>
$(function() {
$( "#process" ).autocomplete({
$( "#process" ).attr('autocomplete','on');
source: "process.php"
});
});
</script>
I found it wouldn't work because autocomplete was set to off. I found a post on the web that said I needed to add the code below. But when I run it I get the error: missing formal parameter with an arrow indicating the # sign.
- $( "#process" ).attr('autocomplete','on');
I tried using prop instead of attr but that didn't make a difference. I tried changing the input statement to set autocomplete on like this
- <input type="text" id="process" autocomplete="true" name="procname" value="press enter" >
That seems to work fine in FF and Chrome but not IE. Can someone please point out what I am doing wrong.