Skip to content

Instantly share code, notes, and snippets.

@jlarteaga
Created October 14, 2014 20:29
Show Gist options
  • Save jlarteaga/93e42c46e052e737da87 to your computer and use it in GitHub Desktop.
Save jlarteaga/93e42c46e052e737da87 to your computer and use it in GitHub Desktop.
HTML: test
<html>
<head>
<title>JQuery Test</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<input type="text" name="input1" id="input1">
<div id="result-panel"></div>
<script type="text/javascript">
$(function() {
$('#input1').on('focusin',function() {
$('#result-panel').append('<h1>Input 1 tuvo focus</h1>');
});
$('#input1').on('focusin',function(){
$('#result-panel').append('<h1>Soy la función adicional, Input 1 tuvo focus</h1>');
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment