Skip to content
Loading
 
+3
  • Sachin Singh
    +2
    jsfiddle for your solution
    https://jsfiddle.net/sachinsinghsharpencode/qdzgt1L4/4/ 
    +2
  • +1
    whats i,v ?
     
    in this each function parameter
     
    $(y).each(function (i,v) {
    var p = $("

    ");
    $(p).html(v);
    $(div).append(p);
    })
    +1
  • Sachin Singh
    +1
    they are just symbols, the first parameter stands for index and the second for value inside each() function in jquery.
    please paste it in notepad, give the reference of jquery (cdn), save it as HTML and run, you will get to know. 
    +1