I have this in my HTML
file:
someText
class="something">otherText
Is
there a way in CSS I can set the background of the PARENT of the class named something?
In this case, the tag?
Here is my
code:
type="text/javascript">
function MyMethod(sender, eventArgs) {
if (condition) {
app.set_cssClass("MyClass");
}
$('.MyClass').parent().css('background', 'url(Images/star.png) no-repeat')
}
No comments:
Post a Comment