How to set email input with logged user’s email address?

Question

I have a contact form and I need to set by default, the email input with the current user’s email address. I have added a js file, where I set the title to an input like this

 jQuery(this).val(document.title)

but could I get the current user’s email in a js file?

0
Andreea Onica 3 months 0 Answers 8 views 0

Leave an answer