$(window).on("load", function() { if ($('#next_event_survey_status-tr input').val() > 0) { $('tr.surveysubmit').css({"display": "none"}); } else { $('tr.surveysubmit').css({"display": "table-row"}); } });