[jQuery] jquery and radio buttons
hi, i have this form:
<form action="action.php" name="form_name" method="post" />
<input type="text" name="text_line" />
<input type="radio" name="radio_name" value="value1" />
<input type="radio" name="radio_name" value="value2" />
<input type="submit" name="submit" value="submit"
disabled="disabled"/>
<input type="reset" />
and i'm trying to do something like this: when one of the two radio
buttons is selected the submit button to become clickable(removing the
disabled attribute).
i tried this code but with no effect
$("input:[@name='radio_name']").change(function(){
$("input:[@name='submit']").removeAttr("disabled");
});
any help will be appreciated , thanks