Support » Themes and Templates » post-form modification

  • Resolved jjkilpatrick


    Hi all,

    I can’t seem to get onfocus to work with a textarea.

    I currently have this added into my post-form.php

    <div class="postrow">
    <input type="text" name="post_content" id="post_content"  tabindex="2" autocomplete="off" value="<?php echo attribute_escape(__('Your Memoiry', 'p2')); ?>"
    							onfocus="this.value=(this.value=='<?php echo js_escape(__('Your Memoiry', 'p2')); ?>') ? '' : this.value;"
    							onblur="this.value=(this.value=='') ? '<?php echo js_escape(__('Your Memoiry')); ?>' : this.value;" />

    This works fine but I cannot get the same to work if I change the form to textarea.

    Any ideas?


  • The topic ‘post-form modification’ is closed to new replies.