WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Rejected JavaScript - Quick-reply box default text on Fri Apr 20, 2012 1:45 am

RSguideMaker

avatar
Registered Member
Registered Member
This is my first tutorial! Please tell me what you think!!

This code works for all versions and WYSIWYG editor must be turned off in order for you to see the default text.

All Versions:
1. Go to Admin Panel -> Modules -> JavaScript Codes Management -> Make sure it's on! -> Create a new JavaScript -> Title it whatever you want -> Select "In all Pages" (For every reply box) or select "In the topics" (For the quick reply box only) -> Paste:
Code:
$(document).ready(function(){
document.getElementById('text_editor_textarea').placeholder = "Your Text Here";
});

Replace "Your Text Here" with whatever you want, but you must keep the quotation marks. Wink

For example:
Code:
$(document).ready(function(){
document.getElementById('text_editor_textarea').placeholder = "Type your message then click send to post!";
});

2. Hit save and you're done! Wink

2Rejected Re: JavaScript - Quick-reply box default text on Fri Apr 20, 2012 3:37 am

Mr.Joker

avatar
Mr. WebArtz
Mr. WebArtz
Umm, I think this is jQuery xD because:
Code:
$(document).ready(function(){
like that a jQuery starts. Anyway, good tutorial. Very Happy

3Rejected Re: JavaScript - Quick-reply box default text on Fri Apr 20, 2012 9:11 am

ankillien

avatar
Administrator
Administrator
Its a nice one Very Happy

It would be nice if you can explain what each part of code does and hot it works together. Providing a code for copy-paste doesn't make a tutorial, as per me.

4Rejected Re: JavaScript - Quick-reply box default text on Fri Apr 20, 2012 6:45 pm

Sanket

avatar
Administrator
Administrator
http://www.malware-site.www/forum/index.php/topic/130-how-to-put-default-text-into-the-reply-boxes/

Please don't copy paste someone else's tutorials.

Tutorial Rejected.

http://www.webartzforum.com

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum