I want to select #btnsrchicon parent's child #txtSearch. I tried in the below format, but not works
HTML
<div id="topSearch">
<input id="txtSearch" name="search" type="text" value="" id="txtSearch" onClick="ClearTextBox()" onkeypress="searchenter(event);"/>
<button id="btnsrchicon" class="submit" onClick="search_another();"></button>
</div>
and CSS
<style>
#txtSearch{display:none;}
#btnsrchicon:hover < #topSearch+#txtSearch
{
display: block;
border:2px solid red;
}
</style>