$(document)
Basically, when the page has rendered...
$('.car-price')
Get the element with the class tag "car-price"...
.data('carprice')
Extract the arbitrary key-value pair given the key "carprice". Read me
here[
^].
parseInt(
convert it to an integer.
$('span.result')
Find the
span
elements with the class "result" (I think!)
$('#months')
Find the element with the id of "months"
$(this).find('option:selected').val()
This is getting the value of radio button that is selected.
jQuery selectors[
^].
Everything else is just repeat of these patterns.