I would like to get the value from textbox when I click right-click > paste.
$('#searchbox').bind('paste', function (e) {
alert($('#searchbox').val());
});
that's code doesn't complete my solution.
Try
$('#searchbox').bind('paste', function (e) {
setTimeout(getTextValue, 10);
});
function getTextValue() {
alert($('#searchbox').val());
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With