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

Display if support for Checkboxes #264

Conversation

jitendraharpalani58
Copy link
Contributor

#241

@danielbachhuber Works for me locally. Please verify..

@jitendraharpalani58 jitendraharpalani58 changed the title Checkbox display if Display if support for Checkboxes Dec 5, 2014
$( this ).hide();
}
var inputType = trigger.attr( "type" );
if ( inputType && inputType.toLowerCase() == "checkbox" ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to accommodate radio too? Other input types?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display_if supports all the input types which returns a value on change. I tested with radio buttons, they work.

Checkboxes, if checked, doesn't change the value of input. Rather, add another attribute "checked".

I presume other input types should work.

@danielbachhuber
Copy link
Contributor

@jitendraharpalani58 can you merge master?

@jitendraharpalani58
Copy link
Contributor Author

@danielbachhuber done!

@danielbachhuber
Copy link
Contributor

Ok. Going to wait until the other ticket has been committed on VIP before merging this.

@mboynes mboynes modified the milestone: 1.0 Beta Dec 20, 2014
@goldenapples
Copy link
Contributor

Just a friendly bump - this functionality would be nice to have, as I ran into this problem again today.

@mboynes mboynes modified the milestones: 1.0.0 Beta 3, 1.0.0 RC 1 Dec 31, 2015
@mboynes mboynes closed this in #459 Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants