Jump to content

Why does this not work?


liamoco

Recommended Posts

Before I created the variable 'idElem' and just had 'document.getElementById' infront of everything it worked fine, but now nothing happens...

 

$j(document).ready(function(){
var idElem = document.getElementById;
//join chat button
$j('#ext-join-chat-button').click(function(){
	idElem('ext-chat-output-join').style.display = 'none';
	idElem('ext-chat-output').style.display = 'block';
	idElem('ext-chat-textarea').disabled = false;
});
});

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/216787-why-does-this-not-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.