lundi 29 décembre 2014

CTRL key and arrow keys allow in input



<input type="text" id="s" />
jQuery('#s').bind('keyup blur',function()
{
var selectedInput = jQuery(this);
selectedInput.val( selectedInput.val().replace( /[^a-zA-Z0-9,]/g, '' ) );
});


I want to edit my text from anywhere in the text so I want the arrow keys (left,right,up,down) and plus crtl key to select all the text with ctrl+A.





Aucun commentaire:

Enregistrer un commentaire