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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -