JSFiddle - React, Tailwind, and code Playground

by Nick Hulea

JavaScript

function Spring() {
    $('#date_choice input').each(arrS, function (i, val) {
        var springDay = moment("May" + val + ", 2013");
        var value_all_students = 0;
        $("#select_grade_limit_both input").each(function () {
            var i = parseInt($(this).val());
            if (!isNaN(i)) {
                value_all_students += i;
            }
        });

        if ($(this) == springDay && value_all_students <= 250) {
            $('#school_form_guided_programs').append('<select id="gp_choice_1" name="6_12_gp_choice_1" style="width:400px;">
                            <option value="" selected="selected">Choose</option>
                            <option class="select" value="Know Your Neighbors">Know Your Neighbors</option>
                        </select>
');
        }
    });
}