$(".warningCloseBtn").click(function () { // When arrow is clicked $(".succseeMessage").hide(); $(".warningMessage").hide(); $(this).parent(".warningDetailGary").hide(); }); $(".succseeCloseBtn").click(function () { // When arrow is clicked $(this).parent().parent().hide(); }); function formatText(icon) { return $( ' ' + icon.text + "" ); } $( ".searchInputBar" ).keyup(function() { if($(this).val() != "" ){ $(this).parent().find(".searchDeleteBtn").show(); }else{ $(this).parent().find(".searchDeleteBtn").hide(); } }); $(".searchDeleteBtn").click(function () { var searchInputBar = $(this).parent().find(".searchInputBar"); searchInputBar.val(""); $(this).hide(); }); $(".jobCloseBtn").click(function () { $(this).closest(".fixedjobDetailTop ").parent(".jobItemDetail").hide(); $(this).closest(".fixedjobDetailTop ").parent().parent().find(".jobDetailNone").fadeIn(); }); function loopMonth() { var month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; $.each(month, function (index, item) { //$("