This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Simple way to init inserted elements #1799
Closed
Description
There needs to be a simple way init everything, and that init needs to be idempotent (something similar to FB.XFBML.parse).
If I were to do something like this:
$(".ui-content").append("<ul data-role='listview' data-inset='true'><li>Foo</li><li>Bar</li></ul>");
Ideally, jQuery Mobile should automatically handle this and parse it. But I understand that may be difficult in all cases (replace/insert/append/etc). So I should at least be able to do something like:
$(".ui-content").jqmobile.parse();
Better yet, I should be able to do something like this:
var newList = $("<ul data-role='listview' data-inset='true'><li>Foo</li><li>Bar</li></ul>").jquerymobile.parse();
$(".ui-content").append(newList);
Metadata
Metadata
Assignees
Labels
No labels