Hi,
Whats wrong with my code? Why does .atrr()
show empty?
Thanks
$(document).ready(function(){
$('#push').click(function(){
alert($('#push2').attr('href').val);
});
});
HTML:
<div id="push">PUSH</div>
<a id="push2" href="http://www.google.com">PUSH Google</a>