css - How to change visibility on an html button before rendering the html it is in? Rails -


मैं एक html बटन & lt; button style = 'display: none' & gt; clear & lt; / button & gt ; = true

देखें

  & lt; बटन शैली = 'प्रदर्शन: कोई नहीं' & gt; स्पष्ट & lt; / button & gt;  

नियंत्रक

  $ शो = गलत डीएफ़ प्रिंट अगर $ शो # बटन बटन अंत की समाप्ति  

इस तरह से सरल?

  & lt; बटन शैली = 'प्रदर्शन: & lt;% = $ शो? "इनलाइन": "कोई नहीं" & gt; '& gt; स्पष्ट & lt; / button & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -