I need the button "Details" to appear only after I am selecting: UK (from first list) -> Controlling (from second list), else stay hidden.
The HTML code is:
<div id="section2_table" class="section2_class">
<div id="systemID"></div>
<div id="countryID"></div>
<div id="departmentID"></div>
<div id="areaID"></div>
<div id="jobRoleID"></div>
<div id="ReleaseStrategy"></div>
<div id="Details2"><span>Cateva detalii aici</span></div>
<div id="popUpDetails"><a href="#">DETAILS</a></div>
</div>
and the script:
$(function() {
$("#departmentID").change(function() {
if ($("#departmentID").is(":selected")) {
$("#popUpDetails").show();
} else {
$("#popUpDetails").hide();
}
}).trigger('change');
});
Unfortunately it doesn't work... Any suggestion would be highly appreciated.