I have three checkboxes and a textbox now If I write something in textbox and check the bold checkbox the text should appear with bold effect and similarly italic and underline
Text inside of an input cannot be formatted this way. You can try and fake it with an editable div.
And use jQuery on that.