src/dependency.js
function getFieldState($ele) {
	var val = $ele.val()

	// If dependency is a radio group, then filter by `:checked`
	if ($ele.attr('type') === 'radio') {
		val = $ele.filter(':checked').val()
	}

	return {
		value: val,
		checked: $ele.is(':checked'),
		disabled: $ele.is(':disabled'),
		selected: $ele.is(':selected')
	}
}
function getFieldState($ele) {
	var val = $ele.val()

	// If dependency is a radio group, then filter by `:checked`
	if ($ele.attr('type') === 'radio') {
		val = $ele.filter(':checked').val()
	}

	return {
		value: val,
		checked: $ele.is(':checked'),
		disabled: $ele.is(':disabled'),
		selected: $ele.is(':selected')
	}
}
function getFieldState ( $ele ) { var val = $ele . val ( ) // If dependency is a radio group, then filter by `:checked` if ( $ele . attr ( 'type' ) === 'radio' ) { val = $ele . filter ( ':checked' ) . val ( ) } return { value : val , checked : $ele . is ( ':checked' ) , disabled : $ele . is ( ':disabled' ) , selected : $ele . is ( ':selected' ) } }
Get the current state of a field
@param  {jQuery} $ele The element
@return {Object}
@private
Get the current state of a field