Reply To: ItemActive on page load with extra PHP vars

Home Forums Older releases 1.0.x ItemActive on page load with extra PHP vars Reply To: ItemActive on page load with extra PHP vars

#8644
RonP
Participant

That is ideed what I did:

Added extra ID to <a> element of menu items (id=menuItem_1, id=menuItem_2, id=menuItem_3, etc.)

Then alter style of menu item via js at the end of php script:

echo("
  <script> 
	$(document).ready(function() { 
	  $('#menuItem_4').css({'background-color': '#2d8ebb', 'color': '#fff'});
	}); 
  </script>
");

Register

You will be emailed a link to set your password.

Login

Lost password?