this question has answer here:
- is there css parent selector? 24 answers
need style id="parent" based on id="child" kindly check code more understanding.
i'm using uniform.js form control
when write
<select id="child" class="input-validation-error"> <option value="">select</option> <option value="1">procurement</option> <option value="2">cost synergy</option> <option value="3">revenue synergy</option> <option value="4">procurement enabled cost synergy</option> </select> it generates below code
<div id="parent" class="selector"> <span>select</span> <select id="child" class="input-validation-error"> <option value="">select</option> <option value="1">procurement</option> <option value="2">cost synergy</option> <option value="3">revenue synergy</option> <option value="4">procurement enabled cost synergy</option> </select> </div> can please me thank :)
attach onchange="function(this)" child. define function(this) in js script. there can getelementbyid("parent").style.xyz='xyz'.
good luck!!
Comments
Post a Comment