Gives solution for any Error occurs in any Programming Language, .Net Core 3.1, 3.0, C#,Asp.Net,Sqlserver,MVC,Java,Php,Html,Css,Jquery,errors and solutions,Latest News,Technology

Wednesday 24 August 2016

Removed jQuery .ready(handler) from version jQuery 3.0

No comments :
Initially jquery introduces $( document ).ready( handler ). After that there some more events were introduced but currently from jquery version 3.0 only one handler works perfectly i.e., $( handler ).

Different types to attach a function to ready event :

  1. $( handler )
  2. $( document ).ready( handler )
  3. $( "document" ).ready( handler ) // Removed in jquery 3.0 version
  4. $( "img" ).ready( handler )
  5. $().ready( handler )


Example :

$(function(){
//Your code
});

No comments :

Post a Comment