How do i create a method/function in Jquery
<p>How do i create a method in Jquery</p>

<p>For example</p>

<pre><code>function dosomething()
{
 // do something 
}
dosomething();// i can call the function this way
</code></pre>

<p>How can i define function like dosomething() and call them in jquery?</p>

<p>Thanks</p>
