I need to add Javascript onLoad to the tag: I have a form and I want to disable input at startup.
How can I do this with symfony? I should only do this for forms, so I cannot add it to the layout tag
You can use view.yml to add js script only to views containing forms. Like this:
yourViewSuccess: javascripts: [yourscript.js]
If you want to use onload or onready, see this link: http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready
Source: https://habr.com/ru/post/1756180/More articles:Rename Unit Test when renaming a Visual Studio class - unit-testingsolr schema for fields with multiple values - solr"Ресурс с именем {Locator} не найден" Ошибка при использовании пользовательского управления mvvm-light - wpfКак бы я обрезал вкладку в окно автозаполнения JQuery? - javascriptHow to programmatically scroll a TreeView control? - c #XML root node with slash ... inexplicable? - xmlProduct Support for Android + iPhone - androidHow can I catch lines that do not start with "ajax /" using regex for CodeIgniter? - phpImageMagick Mogrify: Watermark Package - imagemagickНе удалось найти файл..\bin\Debug\content.dat - c#All Articles