Learning PHP....Stuck...

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
rayj00
New php-forum User
New php-forum User
Posts: 3
Joined: Wed Feb 14, 2018 7:12 am

Sat Apr 07, 2018 2:31 pm

So I have this PHP script I bought and it has some code that I just can't wrap my head around as I am a PHP newbie
and trying to add some features.

What do the following lines of code mean? A high level explanation would suffice.

$('.ab_worker-thing').removeClass('active');

or

$('..ab_worker-thing'[data-thing="'+thing+'"]').addClass('active');

or

$('.ab_worker-stuff').show();

And if you can point me to source to learn more about these structures that would be cool also!

Thanks and appreciate your comments.

Ray

chorn
php-forum Fan User
php-forum Fan User
Posts: 564
Joined: Fri Apr 01, 2016 2:18 am

Sun Apr 08, 2018 1:40 am

This is not PHP, look up "jquery" and the function name you want more details on, like "jquery removeClass".

rayj00
New php-forum User
New php-forum User
Posts: 3
Joined: Wed Feb 14, 2018 7:12 am

Sun Apr 08, 2018 3:52 am

Thanks Chorn. Now I'm totally embarrassed!

Ray

Post Reply