Magic Icon Check Another Field On Focus: Magic JavaScript

Quick Jump ↵

Usage

Add data-mjf="check_other_onfocus" data-mjf_check_other_onfocus_id="FIELD_NAME_SLAVE" id="FIELD_NAME_MASTER" to your master <input> tag.

Add id="FIELD_NAME_SLAVE" to your slave <input type="checkbox(OR)radio"> tag.

Add <script type="text/javascript">$m.wand.check_other_onfocus = true;</script> inside your <body> tag.

Example

* Input Type = Radio



When clicking the input box above, the radio button to the left will auto-magically be checked

« Back to the main documentation