My suggestion is also to add Javascript. Mobile Opera, as well as the iPhone, Minimo (mini-Mozilla) and much more can understand Javascript, at least to some extent.
function noNumbers(e) {
var keynum;
var keychar;
var numcheck;
if(window.event)
{
keynum = e.keyCode;
}
else if(e.which)
{
keynum = e.which;
}
if((keynum >= 48) && (keynum <= 57)) {
return(true);
}
var good_codes = [8, 14, 15, 37, 38, 39, 40];
for(i = 0; i < good_codes.length; i++) {
if(good_codes[i] == keynum) {
return(true);
}
}
return(false);
}
Hope this helps! :)
metafilter.com
source
share