PageSourceSearch

https://odob.health.nz/js/jquery/uncheckable_radio/uncheckable_rad…?v=09dc3c83edbf57f1994e11fdca6bfb35781ff04a

js odob.health.nz collected 2026-10-02 18:34:57 UTC 548 bytes, 15 lines download raw bytes

1(function( $ ){
2    $.fn.uncheckableRadio = function() {
3        return this.each(function () {
4            var radio = this;
5                $('label[for="' + radio.id + '"]').add(radio).mousedown(function () {
6                    $(radio).data('wasChecked', radio.checked);
7                });
8
9                $('label[for="' + radio.id + '"]').add(radio).click(function () {
10                    if ($(radio).data('wasChecked'))
11                        radio.checked = false;
12                });
13           });
14    };
15})( jQuery );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.