A JM Posted April 9, 2015 Share Posted April 9, 2015 I have a PHP form that is currently using the jquery datepicker (1.7.2, yes I know old..) but for the life of me I can't figure out why I can't get the autocomplete (https://jqueryui.com/autocomplete/) to work. It's not firing the autocomplete function unless I do a page refresh however my datepicker is working fine... Should/Can I just add the autocomplete to the datepicker function, will that work or does it need to be a seperate function? Initially I had 2 seperate function() <Script>> and realized that probably wasn't going to work since the function name was the same... <script type="text/javascript"> $(function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme" ]; $("#vis_los_date").datepicker({changeMonth: true,changeYear: true, onClose: function(set_date) { document.getElementById('los_date').value = document.getElementById('vis_los_date').value; } }); $( "#tags" ).autocomplete({ source: availableTags }); }); </script> Looking for some suggestions or thoughts... thanks. A JM, Quote Link to comment https://forums.phpfreaks.com/topic/295366-help-with-jquery-autocomplete-and-php-form/ Share on other sites More sharing options...
Solution A JM Posted April 9, 2015 Author Solution Share Posted April 9, 2015 Please ignore this post. As soon as I posted it I figured out the issue, go figure... it was a form related problem and not a script related issue. Sorry for the noise. A JM, Quote Link to comment https://forums.phpfreaks.com/topic/295366-help-with-jquery-autocomplete-and-php-form/#findComment-1508550 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.