I have a div with contentediatable set to true
<div name="" id="lbl_content_one" contenteditable="true" classref="REF_ONE"></div>
I tried with
$('[classref="REF_ONE"]').change(function(){
var elem = $(this);
console.log(elem.val())
if(elem.val() != ""){
// execute
}
});
But it didnt work. I need to fire an event when user changes the content. Is this possible using jQuery?
Please note that I have several divs with same class and on change of those divs, I need to trigger the event and update the content of divs to backend.