<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="estilo1.css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Geez - Home</title> <script src="app.js/jquery.js" type='text/javascript'></script> <script type='text/javascript'> $('a#fechar').click(function(){ $('#publica').slideUp('slow') }); </script> </head> <body> <div align="center"> <p> <textarea name="post" placeholder="Compartilhe seus Post's aqui" cols="70" rows="1" id="post" style="overflow:hidden;" onclick=""></textarea> <br><p><a href="javascript:void(0)" id="fechar">fechar</a> </div> <div align="right" id="publica"> <input type="button" value="Compartilhar"/> </div> </body> </html>
Já procurei na internet pelo que possa estar errado mas não encontrei nada. testei no firefox e chrome e em nenhum dos dois funciona. na verdade este código é apenas um teste, o projeto inicial seria de que o evento .slideUp() aconteça quando clicar no <textarea/>, se souberem como fazer isso agradeço ainda mais.
Imensamente grato.