Is there an onload event for input elements?

后端 未结 6 719
北恋
北恋 2020-12-01 07:15

Is it possible to trigger a Javascript script, when an input element or any other html element is rendered. This script should be triggered from within the html tag, so that

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 08:03

    No this is not possible. You could however use jQuery + $(document).ready(function) to modify any input field you want right after the page has finished loading.

提交回复
热议问题