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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -