Hi,
I have the following HTML
I'm trying to reference the span (.tickcross) relative to the :required select list's class so I can apply validation animation.
I've tried..
and also...
I just can't seem to get it right.
Can you help?
Thanks,
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I have the following HTML
Code:
<div class="input">
<label for="status">Status<span class="required">*</span></label>
<span class="select">
<select id="status" name="status" required="required">
<option value="">Please Select...</option>
<option value="Appointed Representative">Appointed Representative</option>
<option value="Adviser">Adviser</option>
<option value="Directly Authorised">Directly Authorised</option>
<option value="Not Applicable">Not Applicable</option>
</select>
</span><span class="tickcross" title="Please choose your current status."></span>
</div>
I've tried..
Code:
span < :required + span.tickcross::after { content: '\f071'; }
span < :required + span.tickcross {color:orange;}
span < :required.invalid + span.tickcross::after { content: '\f071'; }
span < :required.invalid + span.tickcross {color:red;}
span < :required.valid + span.tickcross::after { content: '\f058'; }
span < :required.valid + span.tickcross {color:green;}
and also...
Code:
span! > :required + span.tickcross::after { content: '\f071'; }
span! > :required + span.tickcross {color:orange;}
span! > :required.invalid + span.tickcross::after { content: '\f071'; }
span! > :required.invalid + span.tickcross {color:red;}
span! > :required.valid + span.tickcross::after { content: '\f058'; }
span! > :required.valid + span.tickcross {color:green;}
I just can't seem to get it right.
Can you help?
Thanks,
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music