$(document).ready(function() {
   
    // set up variables
    var searchId = 'cctext';
    var defaultText = "enter your email";
   
    // when the input gets focus
    $('#' + searchId).focus(function() {
       
        // if the value in the input equals the default text
        if(this.value == defaultText) {
           
            // clear the input value
            this.value = '';
        }
       
    // when the input loses focus
    }).blur(function() {
       
        // if the value is empty
        if(this.value == '') {
           
            // set the input value to the default text
            this.value = defaultText;
        }
       
    });
});
