This is a java file which generates a div & a text box dynamically.
js file
var count = 6;
$(document).ready(function(){
$("#addmoreParam").click(function(){
$("#showParam tr:last").before("<tr><td><div style=\"width:150px;background-color:#FFF; height:20px;\" contenteditable=\"true\" class=\"paramDiv\" id="+count+"></div></td><td><input type=text name=\"paramValue" + count +"\" class=paramValue /></td></tr>");
count++;
});
});
Below is the code which produces alert when writing anything to div. I tried hard bu it is not giving alert box.
$(function(){
$(".paramDiv").on('keyup', '.paramDiv', function(){
alert('dd');
});
});
I am using jquery-1.9.1.js. Is on
supported in this jquery version ?