<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Adding individual classes to options</title>
		<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options</link>
		<description>Gravity Support Forums Topic: Adding individual classes to options</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 20:29:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/adding-individual-classes-to-options" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-47825</link>
			<pubDate>Mon, 30 Jan 2012 17:42:44 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">47825@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nice, glad you got it creatively working! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Shelly on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-47787</link>
			<pubDate>Mon, 30 Jan 2012 14:42:54 +0000</pubDate>
			<dc:creator>Shelly</dc:creator>
			<guid isPermaLink="false">47787@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;HI Rob,&#60;/p&#62;
&#60;p&#62;sorry it took so long to get back to you :)&#60;/p&#62;
&#60;p&#62;I did try the &#34;important!&#34; thing, and it didn't work. (apparently, option tags can't be set with &#34;display:none;&#34; from what I found when googling - especially in IE.  I couldn't get some of the options to bold, either. Apparently, they ignore styling on individual items.)  &#60;/p&#62;
&#60;p&#62;So I did the workaround instead: created the form for the &#34;regular&#34; pricing, then duplicated the form and replaced the &#34;regular&#34; pricing with the &#34;mid-year&#34; discounted pricing.  Then I used my custom function (that checks the current data against the required dates) and if it's a regular day of the year, it displays the &#34;regular price&#34; form on the page, and if it's between the 2 mid-year dates. it pulls in the &#34;reduced pricing&#34; form on the page.  Works great :)&#60;/p&#62;
&#60;p&#62;I have to edit 2 forms instead of one (if anything major gets changed) but it's working fine anyway!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-45785</link>
			<pubDate>Sat, 07 Jan 2012 19:05:44 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">45785@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Did you try display: none !important; Maybe that will help override? Can you post a link to your form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Shelly on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-45783</link>
			<pubDate>Sat, 07 Jan 2012 17:07:35 +0000</pubDate>
			<dc:creator>Shelly</dc:creator>
			<guid isPermaLink="false">45783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay - that worked! it's adding my classes. However, it's still showing the items for some reason, even though the class is set to display:none.  Very weird.  I suspect something is overriding my setting.&#60;/p&#62;
&#60;p&#62;but thanks so much, I appreciate that!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Shelly on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-45782</link>
			<pubDate>Sat, 07 Jan 2012 14:39:09 +0000</pubDate>
			<dc:creator>Shelly</dc:creator>
			<guid isPermaLink="false">45782@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sweet! Thanks, I'll give that a shot. I appreciate it!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-45780</link>
			<pubDate>Sat, 07 Jan 2012 14:28:08 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">45780@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can achieve this with query, maybe something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[css]&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery(document).ready(function(){
    jQuery(&#38;quot;#inputID option[value=&#38;#39;Field Value&#38;#39;]&#38;quot;).attr(&#38;#39;class&#38;#39;, &#38;#39;some class&#38;#39;);
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can feel free to get more vague or specific with that selector, but that would work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Shelly on "Adding individual classes to options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-individual-classes-to-options#post-45770</link>
			<pubDate>Sat, 07 Jan 2012 10:52:43 +0000</pubDate>
			<dc:creator>Shelly</dc:creator>
			<guid isPermaLink="false">45770@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I realize it's Saturday, but I figured I'd ask anyway :)&#60;/p&#62;
&#60;p&#62;I have a dropdown form field where three of the items should only appear between two dates.  I've already created a function to check the current date, and the function will add a &#34;display:none;&#34; all to the header so it'll hide the options I want.  However, although I can add a class to the dropdown itself, I can't add specific classes to the individual options.  The output simply gives &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;option value=&#38;quot;whatever value&#38;quot;&#38;gt;Option name&#38;lt;/option&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;where I'd like the output to be&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;option value=&#38;quot;whatever value&#38;quot; class=&#38;quot;someclass&#38;quot;&#38;gt;Option name&#38;lt;/option&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;is there some sort of hook or something so I can make that happen?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
