Sunday, January 8, 2012

I just translated a PHP code to a Javascript code.


This is the PHP code that I’ve made as a basis.
the function of this script is to calcute the age of the user provided by the date of birth.
This is my javascript/jQuery code which calculates the age of the user:
after the user inputted the date of birth, this script would be triggered by the blur function and calculates the age of the user and once the script calculated the age, the age would automatically show on the age text field that I’ve created.

*This post was taken from my Tumblr account. If you have a tumblr account, follow me at ricoconess.tumblr.com

No comments:

Post a Comment