Tern & jQuery Extension support - angelozerr/tern.java GitHub Wiki

tern-jquery-extension provides a tern plugin which is able to use tern inside HTML and provides advanced features for jQuery like completion, hyperlink, validation for :

  • CSS selectors:

jQuery Extension Completion

After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the jQuery Extension tern plugin (ECMAScript, jQuery, Browser, Browser Extension tern plugins must be selected too) :

Check jQuery Extension Plugin

CSS Selectors

Completion for CSS Selectors

jQuery Extension Completion

Hyperlink for CSS Selectors

You can go at definition to HTML element id.

jQuery Extension Hyperlink

Validation for CSS Selectors

If you activate tern-lint you will benefit with validation for CSS selectors syntax validation :

jQuery Extension Validation