I'm using a basic dialog with save and cancel buttons. I have 2 div's addName and NameCount(#).
When I click on addName, the dialog should originate from 'addName', on click of save, the dialog should hide and fade in 'NameCount'. On click of cancel, the dialog should hide and fade in 'addName'.

how can this be achieved. Please help!!
Thanks
Teena