PageSourceSearch

https://portal.uclaextension.edu/restricted/2026.1.19_2916/javascript/floatingLabelDelayLoad.js

js uclaextension.edu collected 2026-10-01 10:15:30 UTC 653 bytes, 21 lines download raw bytes

1function addFloatingSelectLabelOnChangeEvent() {
2    var floatingSelectLabelsJQ = $('div.has-float-label > select');
3    floatingSelectLabelsJQ.each(function() {
4        updateFloatingLabelCssClass($(this));
5    });
6    floatingSelectLabelsJQ.change(function () {
7        updateFloatingLabelCssClass($(this));
8    });
9}
10
11function updateFloatingLabelCssClass(selectElementJQ) {
12    if ($.trim(selectElementJQ.val()) === '') {
13        selectElementJQ.addClass('has-placeholder');
14    } else {
15        selectElementJQ.removeClass('has-placeholder');
16    }
17}
18
19$(document).ready(function() {
20    addFloatingSelectLabelOnChangeEvent();
21});

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.