0

The below code works in Chrome but not Safari.

var some_input = $("input[name$='/some_input']");
some_input.prop('required', true);

Could you please explain how to fix it?

Daniel
  • 1,774
  • 2
  • 22
  • 38
  • 1
    Possible duplicate of [Required Attribute Not work in Safari Browser](http://stackoverflow.com/questions/23261301/required-attribute-not-work-in-safari-browser) – Shady Alset Nov 16 '16 at 19:54
  • Have you tried: `some_input.required = true;` ? – Mihailo Nov 16 '16 at 19:55

1 Answers1

0

Try with this, maybe it helps.

http://www.w3schools.com/jquery/html_attr.asp