javascript - How to add a script onLoad? -
i have add javascript onload on tag : have form , want disable input @ load.
how can symfony please ? have forms, can't add in tag of layout
you can use view.yml add js script on views containing forms. this:
yourviewsuccess: javascripts: [yourscript.js]
if want use onload or onready, see link : http://docs.jquery.com/how_jquery_works#launching_code_on_document_ready
Comments
Post a Comment