• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Add a Class name

Add a Class name 8 years 2 weeks ago #36753

  • gianluca
  • gianluca's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Hello there,
I would like to add the class "active" to the DIV.sppb-panel-heading when the form is sent.
I get this problem because the form is inside an accordion and I don't know why if the form got an errore the accordion remains open but when the form shows the thankyou message the accordion is closed.

Here the web page

Any help please? Thanks.
The administrator has disabled public write access.

Add a Class name 8 years 1 week ago #36781

  • gianluca
  • gianluca's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Solved by adding a <script> in the Thank You Message but just adding the class "active" won't work. I'll have to trigger the click() event:

<script>
jQuery(function($){
$('.sppb-panel-heading').click();
});
</script>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!