0

I've the following code in my HTML page:

<input id="user_profile_provide_veterinary_transportation_Yes" name="user_profile[provide_veterinary_transportation]" type="radio" value="Yes">

Before making changes to the site, I was having its name like name=provide_veterinary_transportation, and the following way, I was accessing it in jQuery:

$("input[type=radio][name=provide_veterinary_transportation]");

But now, since it's changed to name=user_profile[provide_veterinary_transportation], I'm unable to find a way to access this using jQuery.

Arslan Ali
  • 16,978
  • 8
  • 56
  • 70

1 Answers1

4

Try this:

$('input[type=radio][name="user_profile[provide_veterinary_transportation]"]');
Scimonster
  • 31,931
  • 8
  • 74
  • 86