Fiddle... Let suppose on button click you are calling ajax method