JS CODE
var app = new Framework7();
var $$ = Dom7;
$$(’.alert-text-title’).on(‘click’, function () {
app.alert(‘Here goes alert text’, ‘Custom Title!’);
});
HTML Code
JS CODE
var app = new Framework7();
var $$ = Dom7;
$$(’.alert-text-title’).on(‘click’, function () {
app.alert(‘Here goes alert text’, ‘Custom Title!’);
});
HTML Code
And is this element in DOM on app load?
I guess no, then use this instead
$$(document).on('click', '.alert-text-title', function () {
app.alert(‘Here goes alert text’, ‘Custom Title!’);
});
yess…it is working… Thanks