Input is hidden by javascript and Destroy method is implemented

Using css to hide the original input element sometimes produces conflicts with other css rules.
Destroy method reverts everything to the original state, destroys the widget and shows the original input