jBase-2/wiki/EVENTS-Lifecycle.md

25 lines
398 B
Markdown
Raw Permalink Normal View History

2026-05-17 12:39:25 +02:00
* [`ready`](#usage-ready)
---
## <a id="usage-ready"></a>.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**
```javascript
$(document).ready(function() {
console.log('DOM is ready!');
});
```