how to do autocomplete=“off” at form level in JSF

前端 未结 2 517
滥情空心
滥情空心 2020-11-30 09:00

how to do autocomplete=\"off\" at form level in JSF?

2条回答
  •  离开以前
    2020-11-30 09:43

    A real quick solution with Javascript would be (assuming you have got jQuery loaded):

    
    

    If you want to stay with vanilla Javascript, you can do:

    
    

    Note: For the second solution make sure your browser is covered here: https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/DOMContentLoaded#Browser_compatibility If not you might be better off using the first solution.

提交回复
热议问题