It's not like affecting a text type input. Behold:
<script type="text/javascript">
$(function() {
var header = $(".emailTemplateHeader");
var body = $(".emailTemplateTextArea");
if (header[0].value == '<%=HeaderCopy %>') {
$(".emailTemplateHeader").addClass('emailTriggerWatermark');
}
if (body[0].innerHTML == '<%=BodyCopy %>') {
body[0].style.color = "#CCCCCC";
}
});
</script>
No comments:
Post a Comment