WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] post-form modification (1 post)

  1. jjkilpatrick
    Member
    Posted 4 years ago #

    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;" />
    </div>

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

    Any ideas?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags