Hey guys, I have a little script here to make links.
it has two input textareas which will take the link and text inputted and make a shortcode for a user.
My jQuery is as follows:
$(function(){
$('#addLink').click(function(){
var link = $('#link').val();
var text = $('#linkText').val();
$('#edit').append("n" +'[link:' +text +'|' +link +']');
$('#link').val('http://');
$('#linkText').val('');
});
});
It works fine…. Up until I edit anything in the textarea manually, then the code doesn’t want to append the text to the textarea. I have a live version on my test site right now. Any help would be appreciated. Thanks.