Auto-Complete form only if it is a specific form

There was some existing code to automatically submit any form found on a specific scene on one of the guide pages. Is it possible to add in a clause to make it only do so if it is a specific form on said scene, not “all forms on the scene?” I’m newer to the Knack JS/CSS functionalities.

https://docs.knack.com/docs/javascript-jquery-examples

Hi

This code will auto submit any specified view:

$(document).on('knack-view-render.view_xxxx', function(event, view, data) {
  $('button[type=submit]').submit();
});

Replace xxxx with the view number of the view you want to auto submit.

Works perfectly, thanks!

Are there any good sources of compiled JS/CSS documentation (excluding the Knack docs) that would be a good resource for future code?