Advertisement
Guest User

Total users online

a guest
Jan 10th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.22 KB | None | 0 0
  1. $(document).ready(function replaceTotalUsersOnline (){
  2.   var string = $('.tu-clase').text();
  3.   var numbers = string.match(/\d+/g).map(Number);
  4.   $('.tu-clase').html(numbers[0] + ' tu texto para el total de conectados');
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement