not setting span value when clear is clicked