As for 1.7 the live event is deprecated - i'm using currently 1.11.1 jquery version. Now, also on the docs says that for 1.9 jquery the live was removed - fine by me. For the next case
<script type="text/javascript">
$(document).ready()
{
$("#submitFile").live('click', function (e) {
alert('button clicked');
e.preventDefault();
alert(1);
});
$('#fileCtrl').live('change', function (event) {
alert(1);
});
<!-- this was a typo from-->
$('#fileCtrl').live('on', function (event) {
alert(1);
});
}
</script>
<div id="uploadDiv">
<input name="import" value="import" type="file" id="fileCtrl" />
<input type="submit" value="export" id="fileupload" />
</div>
for my current project i had to re-use live. the "on" event simple doesn't fire. any reason why? i tried with live and it work, event that the it says on doc that it was removed on version 1.9. Any tip on this? Why is live still working and why "on" doesn't?
Thanks in advance.