I just want to ask to those master in jquery..
I have ajax
$.ajax({
type: "POST",
url: "URL",
data: {
DATA: DATA
},
beforeSend: function(){
//action
},
success: function(result){
$('.className').html(result);
}
});
It already append the <input type="hidden" class="ClassName" value="1">
I try to use
$('.btnClick').on('click',function(){ $('.ClassName').val() }
but still it didn't get the appended input hidden value is there someone to help me?
$(document).on('click', '.btnClick', funtion...). Otherwise you are hooking up only with already existing elements.