Gender & Salutations Script

Morning.

In regards to Gender & Salutations, I'm looking to create a script in which, for example, if "Male" is selected then it only shows "Mr, Sir, etc".

Would anyone know where to start with this?

Thanks in advance.