ejs checkbox in a form

1,068 views
Skip to first unread message

Angelo Chen

unread,
Feb 8, 2012, 6:14:22 AM2/8/12
to nodejs
Hi,

this works:

<input type="checkbox" name="is_avatar" <%=photo.is_avatar?
"checked" : ""%>

is there a simpler way for the 'checked'? Thanks,

angelo
Reply all
Reply to author
Forward
0 new messages