I was able to do this although i had to change line 173 to class-options-interface.php with this
output .= '<img src="' . esc_url( $option ) . '" alt="' . $option .'" class="of-radio-img-img' . $selected .'" onclick="document.getElementById(\''. esc_attr($value['id'] .'_'. $key) .'\').checked=true;" rel="'.$key.'" />';
Basically i just added the key as a rel="" attribute.
i add in the classes of the hidden elements the value of the option as a class along with the hidden class. My Custom JS is
Basically just a way to reference the key. Data attribute could also work. Thanks for the suggestion, I'll look into it when I make the next round of updates.
I was able to do this although i had to change line 173 to class-options-interface.php with this
output .= '<img src="' . esc_url( $option ) . '" alt="' . $option .'" class="of-radio-img-img' . $selected .'" onclick="document.getElementById(\''. esc_attr($value['id'] .'_'. $key) .'\').checked=true;" rel="'.$key.'" />';
Basically i just added the key as arel=""
attribute. i add in the classes of the hidden elements the value of the option as a class along with thehidden
class. My Custom JS isSo i was wondering if this was ok you could add the line officially.