Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
checkbox iimage
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap --><link rel="stylesheet" href="" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src=""></script>
<script src=""></script>
<form action="">
<label for="futbol" style="position: relative;">
<input type="checkbox" value="futbol" id="futbol" name="deporte" >
<img src="" alt="">
<label for="tenis" style="position: relative;">
<input type="checkbox" value="tenis" id="tenis" name="deporte" >
<img src="" alt="">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src=""></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
$("input[name='deporte']" ).on('change', function(){
$(this).parent().append('<img src="" class="chekeo" style="position:absolute; top: 25%; left: 25%; width: 24px;" alt="" /> ');
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment