Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(':button[id^="form"]').click(function (e) {
- e.preventDefault();
- if ([$(this).attr("value")]=='url'){
- $('#message').val($('#message').val() + '[' + $(this).val() + '=link]' + getSelectedText() + '[/' + $(this).val() + ']');
- }
- else{
- $('#message').val($('#message').val() + '[' + $(this).val() + ']' + getSelectedText() + '[/' + $(this).val() + ']');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment