How to call the jQuery function in HTML & lt; Body & gt; in charge?


I want to call a jQuery function from an HTML <body> tag. Here's my HTML:

< body bgcolor="#ffffff" onLoad="???" >

How would I call a jQuery function when the page is loaded? My jQuery function looks like this

    var input_id;

whatever code you write in the below method(block) would be executed automatically after the DOM load. You need not call this from HTML component again.

 $(document).ready(function() { 

//your code