I currently have this HTMl code...
and this javascript...HTML Code:<p><a class="insertCode" href="#"><p></p></a> | <a class="insertCode" href="#"><a target="" href=""></a></a> | <a class="insertCode" href="#"><h1></h1></a></p>
I am trying to make those links into "buttons" that will insert code into my textarea. So far I have nothing happeneing, even the links still work...HTML Code:<script language="javascript" type="text/javascript"> $('a.insertCode').click(function() { var htmltag = $(this).text(); $('#codeArea').val($('#codeArea').val()+htmltag); return false; }) </script>


Reply With Quote
Bookmarks