Code Snippets - Get DOM Element Content
2015-03-25 : 18:00
As I move deeper into the world of MVC and Modular Programming, I find it easier to abstract functions and helpers even more.
This helps when switching libraries, for example, moving from jQuery to another library.
This is the start of a series posts that will be periodically created to share those abstracted functions. Feel free to contribute, critique or read on.
Get the value of a DOM element without having to know the type of element.
Abstracts the Model (data) from the View (html DOM type).
Makes getting the value of any DOM element easy from one Module to another.
That's all folks... for now.