Is ready () for document only or can I use this function for other elements. Example below:
jQuery('.myclass').ready(function(){ alert('ready'); })
Yes, although I would recommend using .load()
.load()
$('#element').load(function() { //do stuff! });
load () does not work in all elements, it is intended exclusively for img, iframe, document, etc. ready () does the job, but the internal function does not work
Source: https://habr.com/ru/post/1789698/More articles:The best way to measure the speed of functions, classes, and processes - performanceLucene Numbering Search with LUKE - indexingCount how many rows loaded LOAD DATA INFILE - sqlThe expression for DateTime :: modify () to change the day of the month - phpFacebook friends export Android email address - androidProblem installing Apple WWDR certificate on keychain - iphoneHow to add a "Glow" effect to a UIBarButtonItem? - iphoneHow can I use the MySQL GROUP BY WITH ROLLUP modifier in Zend_Db_Select? - mysqlВывести все параметры командной строки - command-linePostscript driver for Android? - androidAll Articles