Is it good practice to attach an non existing attribute to an html element in order to use it in jquery. For example
<input type="text" valrule="someregexstring" />
then simply use jquery to select all elements which contain an attribute called valrule and parse the regex string.
Is this a 'no-go' as far as programming standards and best practices go?