jQuery( "#webform-client-form-244784 .webform-component" ).each(function() {
var label = jQuery(this).find('label');
var labelText = label.text().replace(/:/g, "").replace(/\*/g, '');
label.hide();
//console.log(labelText)
jQuery(this).find("input").attr( 'placeholder', labelText);
//for message text area
jQuery(this).find("textarea").attr( 'placeholder', labelText);
});
//ON D6 must wait until form is loaded first
$('#talk-to-advisor').load('/talk-advisor #webform-client-form-244784', function () {
jQuery.cachedScript('https://www.google.com/recaptcha/api.js');
console.log('talk to advisor form loaded');
$(this).find( ".webform-component" ).each(function() {
var label = $(this).find('label');
var labelText = label.text().replace(/:/g, "").replace(/\*/g, '');
label.hide();
//console.log(labelText)
$(this).find("input").attr( 'placeholder', labelText);
//for message text area
$(this).find("textarea").attr( 'placeholder', labelText);
});
});