I am training in PHP laravel web development
But I have two small tasks in the Frontend, and I don't have the time to learn the Frontend to get them done, please help with solving them.
I have 4 button and 1 p:
<button> trans('navbar.Students')</buttom> <button> trans('navbar.Schools')</buttom> <button> trans('navbar.teachers')</buttom> <button> trans('navbar.teachers')</buttom> <p> </p>
I want the following: When the user presses one of the buttons:
1- Change the button color. 2- Putting the value of the button that was pressed in <p>.
- example someone clicks button1:
The button color will change to blue, and the p value will be