Skip to:
Content
Pages
Categories
Search
Top
Bottom

$25 If you can help me (Enter/Post Update) (3 posts) – Repost

Viewing 5 replies - 1 through 5 (of 5 total)

  • Virtuali
    Participant

    @gunju2221

    I don’t need $25, but adding a key function would require a simple jquery attribute to the textarea.

    `key:’Enter’, `


    johnkim1968
    Participant

    @johnkim1968

    Thanks, can you tell me what I’m doing wrong? My code is below…

    `

    @

    `


    Virtuali
    Participant

    @gunju2221

    No, your using it wrong. You will have to make a jquery function and apply it to the textarea.

    Maybe something in:

    `function onTestChange() {
    var key = window.event.keyCode;

    // If the user has pressed enter
    if (key == 13) {
    document.getElementById(“txtArea”).value =document.getElementById(“txtArea”).value + “n*”;
    return false;
    }
    else {
    return true;
    }
    }
    `

    than

    `<textarea name="whats-new" id="whats-new" onkeypress="onTestChange();"`

    Unfortunately, I’m not an expert at jquery. This function is not guaranteed to work and is untested.


    johnkim1968
    Participant

    @johnkim1968

    Well, I tried it, can’t get it to work. Where can I post as a paid job for Buddypress specifically?


    Andrea Rennick
    Participant

    @andrea_r

    jobs.wordpress.net

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘$25 If you can help me (Enter/Post Update) (3 posts) – Repost’ is closed to new replies.
Skip to toolbar