How to extend a jQuery Mobile components?

How to extend a jQuery Mobile components?

Hi all,

I want to extend jQuery Mobile form components/controls with added properties and functionality.

Being a newbie in jQuery, guide me how to get started?

For example, I want to develop a HTML 5 text field component with the following extra features:
- Min Length
- Max Length
- Regex Pattern
- Default Values
- Restrict List Of Values