jQuery Set Value For Any Type of Input Dynamically

Quick share of a problem I had solved for setting form input values dynamically irrelevant of the input type. Hopefully will help someone out there.

Problem

Setting form input values dynamically for input, select, checkbox, radio etc… they all have different methods of setting values. So I was looking for just 1 function which could be passed the input element and set the value based on the input type.
As you may know if you use :input this grabs all inputs on a form: