hey guys
this is my raw javascript code :
<script language="javascript" type="text/javascript" >
function S2T(e) {
document.comments.comment.value = document.comments.comment.value + e;
}
</SCRIPT>
and i want to convert it to jquery function
<script language="javascript" type="text/javascript" >
$(document).ready(function() {
function S2T(e) {
$("textarea#comment").val($('#comment').val()+e);
});
</SCRIPT>
html part
<a href='javascript:S2T('please')' >
i cant convert it , i just want to write function when i click on a icon , it adds to textarea