Can't add input attributes for submit button



I am trying to add additional attributes to the submit button. It says that we can add it through jquery but every time I inspect the element, it doesn’t show that it’s working. I tried the example they gave us of:

portalId: ‘’,
formId: ‘’,
onFormSubmit: function($form) {
$(“input[type=submit]”).attr(“data-target”, “#confirmation”).change();

it does not change the value of the first name. I’m trying to add more attributes but it doesn’t seem to be recognizing any of them no matter where I try to add it.