This is the code to get the value of a checkbox
var email = A.one("#<portlet:namespace/>email").attr('checked');
What is the code to set/enable the checkbox with a tick ?
A.one("#<portlet:namespace/>email").prop('checked', email); //this does not work
A.one("#<portlet:namespace/>email").set('value', email);//this also does not work
Many thanks
You can use
Node#set:Or you can use
Node#setAttribute: