Label Text Changed Event

Posted by Rajesh on Stack Overflow See other posts from Stack Overflow or by Rajesh
Published on 2014-06-10T09:20:16Z Indexed on 2014/06/10 9:24 UTC
Read the original article Hit count: 170

Filed under:
|

In my page if the text of a Label has been Changed I need to fire some function using JQuery as .Change() is restricted to only <input> and <select> I use a function like

$("#ctl00_ContentPlaceHolder1_lblMsg").html("Duplicate record can't be saved.")
.trigger('labelchanged')

$("#ctl00_ContentPlaceHolder1_lblMsg").on('labelchanged', function () {
       alert('changed!');          
    }
    });

but the above function is not triggered when the text of the label has been changed kindly anyone point me what could be I am missing in the above function

© Stack Overflow or respective owner

Related posts about c#

Related posts about jQuery