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]

1Solved How to add a text to the Quick reply box on Sun Apr 01, 2012 10:05 pm

Matti

avatar
Registered Member
Registered Member
Hey guys,

I want to add a text to the Quick reply box like the facebook have it.


Ex: of my text
''Write Your Message''

http://csshelp.forumotion.net/

2Solved Re: How to add a text to the Quick reply box on Sun Apr 01, 2012 11:08 pm

Mr.Joker

avatar
Mr. WebArtz
Mr. WebArtz
If you tell me what version of forum you use I can help you.

3Solved Re: How to add a text to the Quick reply box on Sun Apr 01, 2012 11:48 pm

Matti

avatar
Registered Member
Registered Member
Hi, Mr.Joker I'm using PunBB!

http://csshelp.forumotion.net/

4Solved Re: How to add a text to the Quick reply box on Mon Apr 02, 2012 6:06 am

Unknown Data

avatar
Registered Member
Registered Member
Code:
document.getElementById("quick_reply").getElementsByTagName("textarea")[0].value="Write Your Message";
Smile

http://woops.dk

5Solved Re: How to add a text to the Quick reply box on Mon Apr 02, 2012 6:55 am

Matti

avatar
Registered Member
Registered Member
UD were shall i put this code cuz i tried at Javascript codes management and didn't work.

http://csshelp.forumotion.net/

6Solved Re: How to add a text to the Quick reply box on Mon Apr 02, 2012 11:31 am

ankillien

avatar
Administrator
Administrator
Try wrapping it in jQuery function, like this...

Code:
$(function(){
document.getElementById("quick_reply").getElementsByTagName("textarea")[0].value="Write Your Message";
});

It will trigger the function on page load.

7Solved Re: How to add a text to the Quick reply box on Mon Apr 02, 2012 11:25 pm

Matti

avatar
Registered Member
Registered Member
ok that works but how to make it like this so it can hide when you try to type on the Quick reply like on the FB!

http://csshelp.forumotion.net/

8Solved Re: How to add a text to the Quick reply box on Tue Apr 03, 2012 9:58 am

ankillien

avatar
Administrator
Administrator
Here is the full code...

Code:
$(function(){
  $('#text_editor_textarea').val('Write Your Message');
  $('#text_editor_textarea').focus(function(){
    $(this).val('');
  });
});

9Solved Re: How to add a text to the Quick reply box on Tue Apr 03, 2012 3:17 pm

Matti

avatar
Registered Member
Registered Member
Thanks guys this is solved now! Smile

http://csshelp.forumotion.net/

10Solved Re: How to add a text to the Quick reply box on Tue Apr 03, 2012 3:39 pm

ankillien

avatar
Administrator
Administrator
Solved | Locked

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