1You can apply any one approach:
2
3$("#Input_Id").change(function(){ // 1st
4 // do your code here
5 // When your element is already rendered
6});
7
8
9$("#Input_Id").on('change', function(){ // 2nd (A)
10 // do your code here
11 // It will specifically called on change of your element
12});
13
14$("body").on('change', '#Input_Id', function(){ // 2nd (B)
15 // do your code here
16 // It will filter the element "Input_Id" from the "body" and apply "onChange effect" on it
17});
1$( "#foo" ).on( "click", function() {
2 alert( $( this ).text() );
3});
4$( "#foo" ).trigger( "click" );
5
6$( "#foo" ).on( "custom", function( event, param1, param2 ) {
7 alert( param1 + "\n" + param2 );
8});
9$( "#foo").trigger( "custom", [ "Custom", "Event" ] );
1$('#textareaID').bind('input propertychange', function() {
2
3 $("#yourBtnID").hide();
4
5 if(this.value.length){
6 $("#yourBtnID").show();
7 }
8});