Thursday, April 30, 2009

How to clear all the text field

function clearAll() {
    var txtField = document.getElementsByTagName('input')
    for (var i_tem = 0; i_tem < txtField.length; i_tem++)
        if (txtField[i_tem].type == 'text')
        txtField[i_tem].value = ''

No comments:

Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.