Como usar on () depois de remover o evento click off ()?
off () está removendo o identificador de evento click.
on () deveria reativar o efeito, mas não está funcionando
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('p').on('click', function(){
$(this).css('color', 'blue');
});
$('#btn_off').click(function(){
$('p').off('click');
});
$('#btn_on').click(function(){
$('p').on('click');
});
});
</script>
<span>Click the paragraph:</span>
<p>Prg #1</p>
<p>Prg #2</p>
<p>Prg #3</p>
<p>Prg #4</p>
<button id="btn_off">bind off prg.</button>
<button id="btn_on">bind on prg.</button>
Veja minha pergunta no título.