If the question is “How to target all the text inputs in my budget
div”, then that could be done like this:
#buget input[type=text] {
/* insert style here */
}
That would marginally simplify your HTML to:
<div id="budget" style="display:none;">
<input type="text" name="total_budget" placeholder="Total project budget targets"/>
<input type="text" name="annual_budget" placeholder="Annual budget targets"/>
<input type="text" name="domestic_travel" style="display:block" placeholder="Domestic Travel"/>
<textarea rows="8" name="domestic_description" class="span5" style="margin-top:10px" placeholder="If Domestic Travel amount present then specify the meetings or conferences you will attend."></textarea>
</div>
You may want to also remove the inline style from the textarea
1
solved Code refactoring HTML [closed]