[jQuery] Check to see if a style exists
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Trebuchet MS">Hi All,
Is there way to check to see if a style class is declared within a
document or css file related to the document? I'm building a plugin for
our designer's internal use, with the goal of replacing the standard
javascript dialogs with dialog boxes created with jqModal. I want to
provide the designers with the flexibility to be able to style the
dialog boxes to suit a site style but have a default style for the
dialog if none is supplied.
e.g.:
if ( styles for #</font><font face="Trebuchet MS">customConfirmDialog
not declared in document/css ) {
$("#</font><font face="Trebuchet MS">customConfirmDialog").css({
... });
}
</font><font face="Trebuchet MS">$("#</font><font face="Trebuchet MS">customConfirmDialog").show();</font>
<font face="Trebuchet MS">
I'm sure I've seen this question asked on the list before but I can't
find it and can't think of a way to search for it that won't return a
thousand results.
Regards,
David</font>
</body>
</html>