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
  • 17,418
  • 8
  • 58
  • 76

1 Answers1

4

Try this:

$('input[type=radio][name="user_profile[provide_veterinary_transportation]"]');
Scimonster
  • 32,893
  • 9
  • 77
  • 89