I am using Symfony in front-end and I don't know how to control actions inside it dynamically. I mean for example I would like that the browser tell me I am not writing a number in a field called code. Some people told me that javascript resolve this problems, but I do not know how to do that. Do you have an example using pure javascript inside Symfony (with no external libraries please)? The only external library that I am using is JQuery in order to do some actions with AJAX.
Thank you in advance.