@prathitkumarrpatel: Welcome to the Forum. Looks like you have just Joined 5 hours ago, and Read for 3 minutes in those last 5 hours.
Did you read this: How to use this site
Did you post your attempts at doing what you have described?
Did you SEARCH (the magnifying glass in the top right corner of the screen)?
Did you look at other examples on line with Google? or the Knowledgebase?
For best results, try reading and searcing those things out, then post your code properly (with code tags) and describe the problem you are having.