Could use some help with changing a forms target attribute from select list

Could use some help with changing a forms target attribute from select list

Hi,
I have a form that I need to target either _blank or _self depending on a selection made in a select list. Does anyone have any idea the best way to go about this?
Thanks
Daniel