var $name = $('#name');
var nameEntered = $name.typeahead('val');
$name.typeahead('val', '').typeahead('val', nameEntered);
This is great if you add an entry behind the scenes and then want it to show up in the list of suggestions without having to re-trigger the suggestion refresh manually.
I had some issues with my local Apache/PHP dev sites after installing OS X Mavericks. To get back up and running again I had to do the following.
Uncomment the PHP5 module in the Apache configuration file httpd.conf. The following line should be uncommented:
LoadModule php5_module libexec/apache2/libphp5.so
Include the Virtual Hosts File
I have my virtual hosts configured using the httpd-vhosts.conf file so I had to uncomment the following line in httpd.conf:
Setup the Directory Restrictions
Instead of tweaking the general settings in httd.conf, I specified what to open up right on my site’s virtual host settings in httpd-vhost.conf:
Options Indexes FollowSymLinks Includes ExecCGI
Allow from all
sudo apachectl restart