Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts


var click = "showQuestionForm('"+(tableIdCount)+"','edit')";
                var newXClick = eval("(function(){"+click+"});");
                $("#qHrefLink").get(0).onclick = newXClick;

 

How to add elements to javascript Array

Posted In: . By Webdevelopmentlogics


We can use the push() function to add elements to array

       Ex:
       var jsArray    =    new Array();
    jsArray.push('1');
    jsArray.push('2');