jQuery 'remove' event

by xalvin11

HTML

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<button id="btnTest">Test</button>
<input type="text" id="inputTest" />

JavaScript

$('#btnTest').click(function () {
    $('#inputTest').remove();
});

$('#inputTest').on('remove', function () {
    alert('removing');
})