Search Results


2 years ago by Binoy

I have a form that use popovers..  and i have the following code inside document ready $(document).ready(function() { $('[data-toggle="popover"]').popover(); }); when the form is . . .

  • 9
  • 1
  • 12194

2 years ago by josh

There is an array of objects with a string attribute called name and a number attribute called age.  arr = [ {name: "abba", age: 23}, {name: "lovely", age: 23}, {name: "vincent", age: 5}, {name: . . .

  • 3
  • 0
  • 520

2 years ago by dig_abacus

Given an integer value x, how to search a linked list and delete all nodes with data value greater than x? How to optimally do this in Javascript?Update on 2016-11-17I am implementing the list in jav . . .

  • 7
  • 0
  • 719

2 years ago by josh

Hi, I have multiple tinyMCE instances like  <script src="//cdn.tinymce.com/4/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: '#my . . .

  • 1
  • 0
  • 774

2 years ago by jsRant

Some of the javascript codebase that I am working on has  "use strict"; What is the use of this? . . .

  • 2
  • 0
  • 752

2 years ago by jsRant

Some of the codebase that I am working on has scripts starting with ; and ending with (); What is the purpose of this? . . .

  • 0
  • 0
  • 459

2 years ago by jsRant

When should I use eval() in Javascript ? What are the pros and cons of using eval() ? . . .

  • 1
  • 0
  • 440

2 years ago by jsRant

I know we can use Math.min to do this .apply() on Math function makes it accept unlimited arguments Array.min = function( array ){ return Math.min.apply( Math, array ); }; How to do this with . . .

  • 2
  • 1
  • 581

2 years ago by jsRant

I have var arr = [     {        name: 'a',        value: 1    },    {  &nb . . .

  • 1
  • 0
  • 596

2 years ago by jsRant

Sample: myArray = [1, 2, 4, 10, 20,100] How to find second largest value without sorting the array or latering its contents? . . .

  • 1
  • 0
  • 7506