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

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 Sun Apr 01, 2012 10:05 pm

Matti

Matti
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/

Mr.Joker

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

Matti

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

http://csshelp.forumotion.net/

Unknown Data

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

http://woops.dk

Matti

Matti
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/

ankillien

ankillien
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.

Matti

Matti
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/

ankillien

ankillien
Administrator
Administrator
Here is the full code...

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

Matti

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

http://csshelp.forumotion.net/

ankillien

ankillien
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