Jump to content

change attr ?


Glenskie

Recommended Posts

Hi i want to change the attribute of a div id when the div is clicked.. but its not working for some reason ?

 

$('#prev').attr('id','');
$('#next').attr('id','2');






//Pagination Click
$(".controls").click(function(){


    $("html, body").animate({ scrollTop: 0 }, 700);
    $('#next').removeattr('id','');
  $('#prev').attr('id','');
$('#next').attr('id','7');

 

Link to comment
https://forums.phpfreaks.com/topic/287305-change-attr/
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.