Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function replaceTotalUsersOnline (){
- var string = $('.tu-clase').text();
- var numbers = string.match(/\d+/g).map(Number);
- $('.tu-clase').html(numbers[0] + ' tu texto para el total de conectados');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement