How to get only the value of the year using jquery and datapicker?

Asked

Viewed 110 times

0

Good morning, I’m doing an exercise that I have to take only the value of the year that the user chooses using Datepicker, and then I have to show only the year that was typed.

  • You can get it out of this reply I posted to you.

  • I’m sorry but I’m not getting :(

  • In that part nascimento.getFullYear(); returns the year inserted in the calendar.

  • It has to be only in jQuery, I don’t know what function in jQuery or UI to do this.

  • Whether it’s in the form’s Submit or the date click?

  • On the date click, the page can not update so it can not be the Submit no.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.