Skip to content

Instantly share code, notes, and snippets.

@raddrick
Created January 17, 2013 19:33
Show Gist options
  • Save raddrick/4558916 to your computer and use it in GitHub Desktop.
Save raddrick/4558916 to your computer and use it in GitHub Desktop.
$('html').find('body').bind('mouseover', function() {
//$('html').find('body').bind('load', function() { // this binding didn't work
var age = Age();
if (age != 0 && !age)
age = '';
$('#form_general_age').val(age);
window.displayGuarantorSection(age);
});
$('html').find('body').bind('keydown', function() {
//$('html').find('body').bind('load', function() { // this binding didn't work
var age = Age();
if (age != 0 && !age)
age = '';
$('#form_general_age').val(age);
window.displayGuarantorSection(age);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment