Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply custom classes to checkbox and its accompanying text input. #219

Closed
mgurley opened this issue Sep 30, 2011 · 0 comments
Closed

Apply custom classes to checkbox and its accompanying text input. #219

mgurley opened this issue Sep 30, 2011 · 0 comments

Comments

@mgurley
Copy link
Member

mgurley commented Sep 30, 2011

Using 0.20.0 Rails 3 Branch.

I want custom CSS classes to apply to a checkbox input, plus its accompanying input. For example, a check box and its text box. In the following example for the Toyota answer:

a 'Ford'
a 'GM'
a 'Toyota' :string, :custom_class => "foo"

I want the custom css class to apply to both the checkbox and the text box like so:


<input type="checkbox" value="100" class="foo"> 
Toyota
<input type="text" class="foo"> 

@yoon yoon closed this as completed in 71c8d72 Oct 4, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants