<![CDATA[PunBB Forums — Need help w/ toggling anchor + button]]> http://www.xzqu8qr3.top/forums/topic/30827/need-help-w-toggling-anchor-button/ Sat, 25 Jan 2020 12:03:42 +0000 PunBB <![CDATA[Need help w/ toggling anchor + button]]> http://www.xzqu8qr3.top/forums/post/158433/#p158433 Heeey PunBB

How do i make a jQuery script that toggles visibility of a div and at the same time toggles anchor text of a button?

function toggle(user_id) {
   e = document.getElementById('toggleUserinfo_' + user_id);
   a = document.getElementById('displayUserinfo_' + user_id);
   if (e.style.display == 'block') {
       e.style.display = 'none';
       a.innerHTML = ‘Open';
   } else {
       e.style.display = 'block';
       a.innerHTML = ‘Close';
   }
}

I tried to search for it and came up with the following. However i want something more clean and based on jQuery instead of javascript. I need the script to show more information in the table with a button here
.

Any ideas or suggestions?

]]>
Sat, 25 Jan 2020 12:03:42 +0000 http://www.xzqu8qr3.top/forums/post/158433/#p158433
金沙国际娱城平台