Pre-selecting form fields when coming from different pages using jQuery
I needed to come up with a bit of code for when a client wanted their contact form to pre-select a value in a select box depending on which page they came from. This simple little bit of javascript is what I came up with in the end.



