Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • How to add list dynamically

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 177
    Comment on it

    This is very simple way to add list dynamically using jquery. In this first you have to give Id to select tag then add the script.

    <select id="memoryCategories">
     var selectchoice = document.getElementById('memoryCategories');
         var categoryData = data.category;
        $.each(categoryData, function(key, value) {
        var opt = document.createElement('option');
        opt.value = value;
        opt.innerHTML = value;

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: