Skip to content

Conversation

mlynch
Copy link
Contributor

@mlynch mlynch commented Apr 10, 2012

This adds support for values of checkboxes and radio buttons that are checked. Before the behavior was to send the first element of the group's value, regardless of whether or not it was checked.

@jzaefferer
Copy link
Collaborator

Can you add a unit test for that?

var type = $(element).attr('type'),
val = $(element).val();

if( type === 'radio' || type === 'checkbox' ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be if (, also wrong in the if below, let's fix both. I had started to fix that, but -- see below.

@mlynch
Copy link
Contributor Author

mlynch commented Apr 18, 2012

🎶 PING

@jzaefferer
Copy link
Collaborator

Landed in 5893087

@jzaefferer jzaefferer closed this Apr 20, 2012
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

Successfully merging this pull request may close these issues.

2 participants