.appendTo not working

245
June 06, 2017, at 03:58 AM

I am trying to count how many items there are in a list and then show the result in a div. But no matter what I do the code below crashes my wordpress site.

$(document).ready(function(){
  var myfunction = $(".group_users-ul > li").size();
  $(myfunction).appendTo("#result");
});
READ ALSO
Firefox has very big delay on tap until click event gets triggered

Firefox has very big delay on tap until click event gets triggered

I'm seeing a big delay of seconds after I touched a <a> element in Firefox (54) until the click event gets firedOn Mouse Click I don't see any delay

215
Narrow results by typing case sensitivity issue [duplicate]

Narrow results by typing case sensitivity issue [duplicate]

This question already has an answer here:

213
Navigate to id in Content widget from Text widget on Wordpress page

Navigate to id in Content widget from Text widget on Wordpress page

I have a Wordpress page with a text widget containing a select dropdown menu, along with a JQuery function to scroll to an id of a dl element in a separate content widget on the same pageThe dl elements are contained within separate columns on a different...

255
Fucntion parameter values to replace the integer from a string

Fucntion parameter values to replace the integer from a string

I have a function the parameter has more than one values which I'm passing them after a loopI want to use the values Im getting to replace integers in a string by there older

202