We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code show 2 autocomplete in same (first) field. Any alternative? Thank you
<input type="email" class="form-control" name="email" id="email1" required="required"> <script type='text/javascript'> var input = document.getElementById("email1"); var awesomplete = new Awesomplete('input[type=email]',{list:["gmail.com","hotmail.com","outlook.com"],data:function(text,input){return input.slice(0,input.indexOf("@"))+"@"+text;},filter:Awesomplete.FILTER_STARTSWITH}); </script>
<input type="email" class="form-control" name="email" id="email2" required="required"> <script type='text/javascript'> var input = document.getElementById("email2"); var awesomplete = new Awesomplete('input[type=email]',{list:["gmail.com","hotmail.com","outlook.com"],data:function(text,input){return input.slice(0,input.indexOf("@"))+"@"+text;},filter:Awesomplete.FILTER_STARTSWITH}); </script>
The text was updated successfully, but these errors were encountered:
Shouldn't you store the elements on different variables and use these variables as parameters?
Sorry, something went wrong.
No branches or pull requests
This code show 2 autocomplete in same (first) field.
Any alternative?
Thank you
The text was updated successfully, but these errors were encountered: