When the element is created the click is fired
When the system exec this code, the event click is fired.
What's going wrong?
- $("#box-btn").html("");
- $("<a>").prependTo("#box-btn")
- .attr("href", "#page3")
- .attr("id", "final")
- .attr("data-theme", "a")
- .attr("data-transition", "flip")
- .attr("data-role", "button")
- .html("Final");
- $("#page2").page("destroy").page();