how to create jquery popup

how to create jquery popup

Hello to all,
I am new to jquery.
I need a simple popup to be opened when a button is clicked.
When something is entered in the input field of the popup and clicked some button, the popup will be closed and entered value is transferred to the parent page. Can somebody give me steps to implement this?

Thank You