how can use onclick /click function in Touch UI by client Lib in AEM6.1
Inline script is working but want to move the js into clientlibs .
Please let me know if it is working with AEM6.3 too.
Code:
HTL
<button onclick="closeDialog()">X</button>
JS Client lib
function closeDialog() {
alert();
}