Apply for a Position Online
jQuery(function($) {
var section = [], new_div;
if ($('body').hasClass('themify_builder_active'))
return;
$('.builder-contact-field:has(.todays_date) input')
.css({'background-color':'rgba(1,1,1,0)', 'border':'none'})
.val( new Date().toLocaleDateString('en-US') )
// .attr('disabled',true)
// go through all the Form fields
$('.builder-contact-field').each(function() {
// Is this field is a section-start?
var secStart = $(this).find('.section-start');
if (secStart.length > 0) {
// Field is a new section-start: create a new array for the contained fields and a new container element for them
section = [];
new_div = $('');
// collapsing container for subsequent fields
new_div.insertAfter($(this));
// Add custom text to the section name
secStart.parent().append('
');
} else if (new_div) {
new_div.append($(this));
// move the field into the container for the section
section.push($(this));
}
});
// add the section click behavior
$('.section-start').closest('.builder-contact-field').addClass('section').click(function(e) {
e.preventDefault();
var section = $(this).next();
if (!section.hasClass('m_section'))
return;
if (section.is(':visible')) {
section.slideUp();
// Hide the section
} else {
section.slideDown();
// Show the section
}
});
// hide all section containers on first run
$('.m_section').hide();
});