Note: this page has not been updated after 1.3

Question:

Triggering create on injected HTML does not work.

Answer:

It is important to remember that create must be triggered on the parent container and not on the individual element that needs to be enhanced.


//HTML
<form id="formid">
	<input type="search" id="searchInput"/>
	<button id="submitButton">Submit</button>
</form>
//javaScript **CORRECT**
$("#formid").trigger("create");
//javaScript INCORRECT
$("#searchInput").trigger("create");
$("#submitButton").trigger("create");