File size: 597 Bytes
58ce155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$(function () {
    $('input:first').focus();
    $('code').click(function () {
        $(this).select();
    });

    // Focus the first input field in the form
    $('form:not(.filter) :input:visible:enabled:first').focus();

    $('select').material_select();
});

$(document).ready(function() {
    $('.form-help').each(function (index, help) {
        var $help = $(help);
        var $row = $help.parents('.row').first();

        if ($row.length) {
            $help.addClass('col s12 m12 l6');
            $row.append($help);
        }
    });
    $(".should-get-hidden-by-js").hide();
});