Get Alt value from clicked element and fadein div named element alt value
i trying to get div id from clicked img alt value and fadein that div. I stucked here because i'm not jquery master but trying to learn. Here is my code:

    $('#div1').bind('click',function(){
    					var $this = $(this);
    					var $divid = $this.attr("alt");
    					$divid.fadeIn(3000);
    				});
div sample;

    <div id="div1" alt="div2"></div>
    <div id="div2" style="display:none"></div>

Thanks
Get Alt value from clicked element and fadein div named element alt value
===

i trying to get div id from clicked img alt value and fadein that div. I stucked here because i'm not jquery master but trying to learn. Here is my code:

    $('#div1').bind('click',function(){
    					var $this = $(this);
    					var $divid = $this.attr("alt");
    					$divid.fadeIn(3000);
    				});
div sample;

    <div id="div1" alt="div2"></div>
    <div id="div2" style="display:none"></div>

Thanks