Dealing with radio in JQ

Dealing with radio in JQ

So I have two radio buttons...
  1. <input type="radio" name="radiodate" value="1">Today
  2. <input type="radio" name="radiodate" value="2">Other
  3. <input type="text" name="date" size="10" maxlength="10" placeholder="mm-dd-yyyy">
I would like to disable / hide that text input based on user selection of above mentioned radios. Would this work? Something tells me I'm missing something.
  1. var $txtDate = $("input[name='date']");
  2. $txtDate.addClass("hidden").attr("disabled","disabled");
  3. var $radioDate = $("input[name='radiodate']");
  4. $radioDate.bind("change", function() {
  5.       if ( $(this).val() == 1 ) $txtDate.removeClass("hidden").attr("disabled","disabled");
  6.       else $txtDate.addClass("hidden").attr("disabled","disabled"); });
Is this gonna work? I haven't been able to really find anything on google thats really been what I was looking for.