1

Using jasmine to test some javascript code and I need to simulate an on-paste URL event. I've tried looking for something similar but I've only found something that simulates a on-paste event which originates from here

How do I capture the input value on a paste event?

$('textarea').trigger("paste");

Anyone have any idea on how to imitate an on-paste URL event?

EDIT1: The first duplicate statement only addresses intercepting a paste event not creating one. The second duplicate only addresses on creating a on-paste event not an on-paste URL event.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.