There is a code
if ( $("#payment").hasClass("checked") ) { document.getElementById("uniform-id_carrier1300").style.display='none'; } else { document.getElementById("uniform-id_carrier1300").style.display='block'; } With its implementation, everything works, but once. I wish there was a constant check of the class name. That is, if the element has the name of the class "checked", then hide the element, if this element does not have the name of the class "checked" then show.
onchangehandler that keepsonchangechanges, and for the corresponding handler, you need a code that “tuggles” the style to display the element (cut the display unit or remove it depending on what value it has now). - VostokSisters