Good day!
How to write scripts? Where to start? What is the logic of writing?
How to debug a script? How to find out why this or that function does not work, which seems to work in other similar moments.
Courses passed, but somehow not really. It seems I can write small ones, something like that, clicked here, hid there, but those that are more difficult in any way.
Here's an example task: there is a form, and a submit button, which is outside the form. You need to disable sending this form.
It seems everything is simple, you need to disconnect through
$('.b-form--order').submit(function(){ return false; }); <form> <input type="text" class"form-input"> </form> To send
but the script is not working. Why doesn't it work? How to find out?
selector ('.b-form--order'). Write$('.b-form--order')in the console and see if you have an item. - Stepan Kasyanenko.b-form--orderelement, but you are accessing it, you can change it to theformtag, or assign the identifier to the<form>- Vasily Barbashev