Disabling jqueryui on a form / bad practice js input color
Hi,
I suppose this is both a question and feedback / idea. Here it goes:
"Specs", I'm using
- jquery 1.8.0
- livequery
- jqueryUI 1.10.0 via google servers and tried via your servers
- twitter bootstrap
I'm using jqueryui for my search suggestions which works well, I'm using a dark theme there black background and grayish text there. I also have an contact (email) form on the site. I've noticed that jquery-ui.js then also makes my contact form have light grey color. Since this contact form has white background-color (twitter bootstrap) this doesn't work, the text is hard to read! Both when typing and after naving to next field. the <textarea> is not affected.
1) How do I prevent jqueryui affecting a form (I assume this is possible / should be). It adds:
style="color: rgb(204, 204, 204);" to the input fields.
2) Is it really good practice to add visual styles via javascript to all forms? You should at least have a css-class that enables it if the user wants! Eg. <form class="jquery-iu-form"> or something similar. Users will be wanting to use jquery-ui for only parts of the page!
It feels like a hack to override this style via my own javascript/jquery!