jBase-2/wiki/EVENTS-Lifecycle.md
2026-05-17 12:39:25 +02:00

398 B


.ready

Description Specify a function to execute when the DOM is fully loaded.

Parameters

  • handler (Function): A function to execute after the DOM is ready.

Returns

  • (jBase): Current instance.

Example

$(document).ready(function() {
    console.log('DOM is ready!');
});