text from input not being sent to script
I have an on screen keyboard that when characters are clicked they are added to a text input. This part works fine. The problem is that the text is not getting sent to the search script I'm using.
If I manually type in the text input with a real keyboard it works fine.
The html for the text area is:
- <input id="songname" type="text" autocomplete="off">
The script I want to send the text to is:
- $("#songname").bind("input paste DOMAttrModified", function() {
var Title = $("#songname").val();
if (Title.length < 2) {
$("#rightbox ol").empty();
return false;
}
I know a little jquery, but not enough to figure this out.
Any help would be greatly appreciated.
Here's a
jsfiddle if it helps.