MyBB Community Forums

Full Version: message_old, message_new
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys I can't add character counter because the name in newthread template for textarea is message but in the source code it's message_old, message_new?

Can I add

formcontent=what.form.message_old.value;
formcontent=what.form.message_new.value;
what.form.displaycount2.value=formcontent.length;

to editor.js


How to hook textarea with JavaScript?????


What about

if($('message_new')) {
		var elTextarea      = $('message_new'); 
	} else {
		var elTextarea      = $('message');
	}