prevent specific input from being sent on submit
===

I have an radio group selecting the user what to search for. The inputs the user isn't searching for are hidden with JavaScript. How do I prevent them from being submitted? E.g. if radio1 is selected, I don't want to have the input with the name `"search-by-date"` to be submitted. Is there any way I can do it except removing the name attribute? If removing the name attribute is the only/best way, where is the right place to do it?

Thanks