-
Notifications
You must be signed in to change notification settings - Fork 99
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
Display if support for Checkboxes #264
Conversation
$( this ).hide(); | ||
} | ||
var inputType = trigger.attr( "type" ); | ||
if ( inputType && inputType.toLowerCase() == "checkbox" ) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@jitendraharpalani58 can you merge master? |
@danielbachhuber done! |
Ok. Going to wait until the other ticket has been committed on VIP before merging this. |
Just a friendly bump - this functionality would be nice to have, as I ran into this problem again today. |
#241
@danielbachhuber Works for me locally. Please verify..