Twitter bootstrap typeahead difficult to add custom entries

 

If you are not familiar with twitter bootstrap typeahead please take a look at http://twitter.github.com/bootstrap/javascript.html#typeahead

While I am using twitter bootstrap, I found it is difficult to add the custom entries.

1 .When we add a entry and clicking on Enter the typeahead is taking the first list item as the value of the test box.

I solved this by Editing the typeahead javascript source code, refer my code from

https://github.com/abhilashak/Ajax-Typeahead

 

 

Advertisements

HTML5

It is not a totally new version of HTML 4 . It support the features of HTML 4 and is a collection of individual features like canvas, video, geolocation etc. We can interacts with javascript through DOM (Document Object Model). It does not have any special notation to handle features like video. The API defines this. Upgrading to HTML5 need only change the doctype.

!DOCTYPE html

It defines new semantics like article, section, footer etc.

Local Storage :

HTML5 provides local storage. It stores information on the mechine, this allows the sites to retrieve it later.