I want to use show()
and hide()
in jQuery. I have developed something which you can see on:
Fiddle: http://jsfiddle.net/xMk2S/
The confusion part of my code is when I click on Click to Apply coupon code
then a input will appear with text Apply !
when i click on Apply !
then Apply !
will go and on the place of it X
will come when click on this it will take you on the first stage where Click to Apply coupon code
only will show now confusion is when I again click on it then input will come but Apply !
will not come.
Basically I want it run this again and again. Please check my code.