html - asp.net apply same style to textboxes within div -


i have 3 div's on 20 textboxes in each div. based on rules, each div enabled or disabled.

i use following code via vb disable or enable of fields in each div, , works great: div_full1_details.attributes.add("disabled", "") div_full1_details.attributes.remove("disabled")

now when enable div, apply style each box within div, , 1 hit, code above.

so apply this:

div_full1_details.attributes.remove("disabled")`  div_full1_details.style.add("border-bottom", "thin dotted #ad9f9f") 

so last line of code apply style textboxes within div div_full1_details

can done ?

update:

following comments below , search on web regarding child style, etc, have done follows, wrong:

css

 .div_details_dotted * {border-bottom: thin dotted #ad9f9f}   .div_details_dotted_white * {border-bottom: thin dotted white} 

vb page ' set 3 divs white dotted border-bottom

div_1_details.attributes.add("class", "div_details_dotted_white")         div_2.attributes.add("class", "div_details_dotted_white")         div_3.attributes.add("class", "div_details_dotted_white")  if username='frank' ' enable textboxes in div 1 , put dotted dark line below... div_1_details.attributes.remove("disabled")             div_1_details.attributes.add("class", "div_details_dotted") end if 

however doesn't work, i've done wrong. each div has dark line around has dissapears (so css not being appliedonly child textboxes div. div_1_details.attributes.add("class", "div_details_dotted") doesn't anything.

any ideas how proceed ?? thanks


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -