jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
clearInputs() |
clearInputs()Clears the selected form elements. Takes the following actions on the matched elements: - input text fields will have their 'value' property set to the empty string - select elements will have their 'selectedIndex' property set to -1 - checkbox and radio inputs will have their 'checked' property set to false - inputs of type submit, button, reset, and hidden will not be effected - button elements will not be effected 返回值jQuery 示例说明:Clears all inputs with class myInputs jQuery 代码:$('.myInputs').clearInputs(); |