Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8261365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:22:53+00:00 2026-06-08T03:22:53+00:00

I have a jquery token tagit plugin and I want to bind to the

  • 0

I have a jquery token tagit plugin and I want to bind to the paste event to add items correctly.

I’m able to bind to the paste event like so:

    .bind("paste", paste_input)

…

function paste_input(e) {
    console.log(e)
    return false;
}

How can I obtain the actual pasted content value?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:22:54+00:00Added an answer on June 8, 2026 at 3:22 am

    There is an onpaste event that works in modern day browsers. You can access the pasted data using the getData function on the clipboardData object.

    $("#textareaid").bind("paste", function(e){
        // access the clipboard using the api
        var pastedData = e.originalEvent.clipboardData.getData('text');
        alert(pastedData);
    } );
    

    Note that bind and unbind are deprecated as of jQuery 3. The preferred call is to on.

    All modern day browsers support the Clipboard API.

    See also: In Jquery How to handle paste?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed the JQuery token-input plugin. https://github.com/loopj/jquery-tokeninput Autocomplete is working, but I have a
I'm using the jQuery Google Maps v3 plugin , I want to add the
I have jQuery load asset on my layout and I want to use CHtml::ajaxButton/ajaxSubmitButton
I have jquery ui dialog box, and I want to resize it by the
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have jquery with class= modal i want to call that class when page
I have a PHP/jQuery/AJAX/MySQL app built for managing databases. I want to implement the
I have jQuery draggable set up and working ok on a table row. Currently
I have JQuery UI Dialog opening on pressing CTRL + Q using the following
I have jQuery on my site. I also have a youtube video using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.