.on method is not giving the output

.on method is not giving the output

Hi All

I have the following program:

<script>
$(function(){
$('div').on('click','input[type="button"]',function(){alert("hello");});
});
</script>

<body>
<div class = "divs">
<input type = "button" value = "Propagate">
</div>
</body>

So while clicking on the button with the value of "Propagate",it is not generating the required output(i.e that is not alerting hello).

Varun