I want to show/hide the button with class ".edit-one-button" within ".widget" by using the javascript below. However, the button is not hidden when I first load the page. Any idea what might went wrong?
<script type="text/javascript">
$(function () {
$('.edit-one-button').hide();
$('.widget').hover(function () {
$(this).find('.edit-one-button').fadeIn(100);
}, function () {
$(this).find('.edit-one-button').fadeOut(100);
});
});
</script>