Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
Javascript code doesnot work on safari , rails on change submit
$(document).ready(function() {
  $('.instant-submit').on('change', function() {
     this.form.submit();
  });
});
<%= form_with(url: profile_path, method: :get) do |form| %>
  <select class="form-control filter instant-submit" id="data" name="data" >
  <option <%= params[:data] == "Weekly" ? "selected" : "" %> value="Weekly" > <%= 
 link_to "Weekly",class: 'form-control'%> </option>
 <option <%= params[:data] == "Daily" ? "selected" : "" %> value="Daily"> <%= link_to 
"Daily", class: 'form-control' %></option>
</select>
<% end %>

THis is my code, it doesnot work on safari ? I am trying to submit form on change select. It works on chrome and other browser but not in safari. Why ?

THis is my code,

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!