Hi i have to add the class "hide" to input element which having the class "display".
<input type="text" id="Text" class="display"/>
Is any ways to add the class to element from less?
Hi i have to add the class "hide" to input element which having the class "display".
<input type="text" id="Text" class="display"/>
Is any ways to add the class to element from less?
Try this:
.hide{
background-color:blue;
}
.display{
color:red;
.hide;
}
This will work..
HTML
<input type="text" class="display"/>
LESS
.hide {
color: red;
}
input {
&.display {
.hide ();
}
}