First you need to download a bin folder corresponding to the version and replace your current bin folder inside the .minecraft folder.
Here you can download old Minecraft versions and find a guide on how to install.