SO - 28275762 - Placeholder text toggle
by codeSpy
HTML
<input type="text" id="keyfob" class="customform col-sm-12 text-red" data-required='true' placeholder=" Please click here to Key Fob scanning work">
JavaScript
$('#keyfob').attr('placeholder','Please click here for Key Fob scanning to work');
$('#keyfob').on("focus blur", function(){
$(this).attr("placeholder") == "" ? $(this).attr("placeholder", "Please click here for Key Fob scanning to work") : $(this).attr("placeholder", "");
});