Jquery Plugin writing

Jquery Plugin writing

Hello

I want to write my own plugin and want to publish in jquery.
So plz help me how to do this ?

Thank you