using jquerry onload is the best option.
Thanks replay. Our application uses Richfaces. I have not used JQery before. Do you have info how to use JQery. I mean some link where i can go through that.
I got the code
here it is
Thanks for your help
Is it possible to achive this by using a4j:jsFunction
jsFunction is a component to be used for request firing on some call, So it' is not your case.
And about jquerry. It's included to RichFaces so you should use internal script in order to avoid conflicts.
And to avoid conflicts with prototype consider this http://www.jboss.org/community/wiki/Commonclientside#jquerryusage
Thank you very much for you help. i am able to solve this issue.