nested.condition
BAN USER<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hydra</title>
<script type='text/javascript' src='udacity_Front_End_Web_Developer_nano/Project_5/final_project/js/jquery-2.1.3.min.js'></script>
<style type="text/css">
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; }
</style>
</head>
<body>
<div id="container">
<button>hydra</button>
</div>
<script type="text/javascript">
(function () {
'use strict';
$('#container').delegate('button', 'click', function () {
$(this).detach();
$( [1, 2] ).each ( function () { $( '#container' ).append( " <button>hydra</button>" ) ;
} );
} );
} ) ();
</script>
</body>
</html>
- nested.condition February 20, 2015