TextField Valdiation in Appcelerator Titanium
How can i Valdiate my TextField in Titanium or in JavaScript to restrict it to numbers only.

    var txt_appt2 = Titanium.UI.createTextField({
        top:2,
        left:240,
        width:75,
        color:'#000',
        backgroundColor:'#fff',
        font: {fontSize: 12}
    });


TextField Valdiation in Appcelerator Titanium
===

How can i Valdiate my TextField in Titanium or in JavaScript to restrict it to numbers only.

    var txt_appt2 = Titanium.UI.createTextField({
        top:2,
        left:240,
        width:75,
        color:'#000',
        backgroundColor:'#fff',
        font: {fontSize: 12}
    });

