Skip to content

Instantly share code, notes, and snippets.

@brettkelly
Created January 20, 2011 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brettkelly/787218 to your computer and use it in GitHub Desktop.
Save brettkelly/787218 to your computer and use it in GitHub Desktop.
$(function(){
$("#apple").submit(
function(event){
var price = $("#app_price").val();
var units = $("#units").val();
$("#gross").val(price * units);
$("#loss").val(((price * units) * 0.3) + 99);
$("#output").val(((price * units) * 0.7) - 99);
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment