I'm new to Jquery and can't get my head round this.
I have a search icon that when is pressed I want a the search box to slide out to the left but can't get my head round it. Is there any useful tutorials out there or can someone let me know what im doing wrong in my Jquery.
Thanks
HTML:
<div id="search-container">
<div class="search-bar">
<input name="ctl00$txtSearch" type="text" id="ctl00_txtSearch" class="searchbox" value="Search" onfocus="this.value=''">
</div>
<button type="submit" name="ctl00$btnSearch" value="Go" id="ctl00_btnSearch" class="searchbutton search-bg show"></button>
</div>
Jquery
$(document).ready(function() {
$('#search-container input').click(function() {
$(this).next().slideToggle();
});
});