My Question is suppose I type something in div block and then I click on “No” then that block disappaer.
But When I click on “yes” again all values that are there are still on the InputFields.
My requirement is I am expecting that those values should be clear when I switch to field “No” in my case
I like a good challenge. This is based off your reset idea.
You’d obviously need a bit more styling to this but it’s a rough demo.
I have to go shower for work otherwise I’d keep styling it to make it more similar.
Perhaps I could add some CSS in there to perhaps check if the “yes” ISN’T checked and then style the “no” accordingly. I’ll play with this when I get to work…
Yes,that’s what I meant but I didn’t think to style the reset button as a radio . The main problem with that approach is that the whole form gets reset so if there is other data being presented then you would need separate forms for each.
You made a checked state for the reset-button, just as a radio button, nice.
Played with your demo trying to make it look like a radio button too. Couldn’t get closer than this in the setup, sure crossbrowser differs anyway. http://jsfiddle.net/b0hbk495/30/
Suppose I have a “select” tag also in my div block
And after closing tag I want that should also be in “Select Course”
not indivitual course that are selected