Tuesday, 10 September 2013

radio button - how to check a link and send user to URL

radio button - how to check a link and send user to URL

I'm trying to find the best way of checking a url based on a radio button
selection. On my page, I have at least 5 pairs of radio buttons. Can
someone tell me what's the best way of sending the user to the correct url
based on their selected radio button?
$(document).ready(function () {
$("*[type=radio]").change(function () {
alert( $(this).attr("value"))
})
});
see more code: jsfiddle

No comments:

Post a Comment