javascript - Js Active link not working in php when I am trying to use GET -



javascript - Js Active link not working in php when I am trying to use GET -

i have used js active link,this working fine below line

<a href="http://www.google.com" class="list-group-item menu cp_btns" target="blank" ><?php echo $row['title']; ?></a>

but below line working loading time, after load page it's not working.

<a href="index.php?u=<?php echo $row['title']; ?>" class="list-group-item menu cp_btns" ><?php echo $row['title']; ?></a>

here url index.php?u=google

i have used js code here

<script> $(document).ready(function(){ $('a.cp_btns').click(function(){ $('a.cp_btns.active').removeclass("active"); $(this).addclass("active"); }); }); </script>

have there solution prepare problem ?

javascript php jquery

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -