Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Percentage calculation after entering amount. Help Me Urgent Reply To: Percentage calculation after entering amount. Help Me Urgent

#147291
James
Participant

Using jQuery, I made this. Easy.

http://codepen.io/JMDUK/pen/tDhpi

Type in the amount, get the answer (85% of the amount) and get the remainder (left over, 15%).

I would go through the whole isNaN process with you (type a character in to the input…) but it’s a tricky explanation for my brain at this time of night.

:)