You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the result value is not set, set it to (isChecked) ? true : false
Two problems here
since the code will set the value if it is not set, so everything is only relevant in the first iteration
the ternary operation is meaningless, isChecked is already the boolean
But the bigger problem is that, it doesn't tell which radio box is checked.
Before that particular commit, the field obj returned should hold the value (.val()) of the checked radio box. After that, however, the value is a boolean which is the checked state of the first radio in the group.
The text was updated successfully, but these errors were encountered:
As mentioned in this comment.
The code reads:
(isChecked) ? true : false
Two problems here
isChecked
is already the booleanBut the bigger problem is that, it doesn't tell which radio box is checked.
Before that particular commit, the field obj returned should hold the value (
.val()
) of the checked radio box. After that, however, the value is a boolean which is the checked state of the first radio in the group.The text was updated successfully, but these errors were encountered: