How to show/hide textfield according to the change in drop down using jquery?
I have done something similar using conditional fields module which is an interface for the States API or you can use States API if you are comfortable writing custom code.