开发者

Google Chrome form element reset not working

开发者 https://www.devze.com 2023-01-04 15:23 出处:网络
I am trying to clear the values contained within a form using an HTML input type reset. It seems fine and resets the values in Safari and Firefox, just not in Chrome (Mac OSX). Does anyone know a way

I am trying to clear the values contained within a form using an HTML input type reset. It seems fine and resets the values in Safari and Firefox, just not in Chrome (Mac OSX). Does anyone know a way around this without writing javascript to do it开发者_JS百科? (I have done it this way before but want to avoid it)

<form ... >
   <input type="text" ... />
   <input type="reset" label="Clear" ... />
</form>


Be sure that you have your doctypes set correctly. If you are unsure about that send your HTML through the W3C Validator

0

精彩评论

暂无评论...
验证码 换一张
取 消