Ir al contenido principal

JQuery III Tricks


Tricks


  • In the console, select an element and type:

jQuery._data($0,"events")


  • Load events before documents ready
$('document').on("click", "selector", function(){

});



Namespace

$('element_filter').on('focus.namespace blur.namespace'), function (event){

})

$('element_filter').off('namespace');



Just-in-time inizialization

$('document').on('focus', "input.date:not(.hasDatePicker)" ,  function(e){
    $(this).initialize_function();
})


Comentarios