Home Data is not getting listed using <ul><li> tags in javascript
Reply: 0

Data is not getting listed using <ul><li> tags in javascript

user1133
1#
user1133 Published in April 24, 2018, 8:33 am

I am trying following code to list the data using <ul><li> tags in javascript .But bullets are displaying only in first data not all data.

  var prjlist;
    var output; 
    var proh;
    var statuss;
    var status;


    for (var i = 0; i < tabList.length; i++) {
        for (var j = 0; j < responseText.length; j++) {          


      prjlist= responseText[j].projectDescription;
      statuss= '<ul><li>'+ responseText[j].currentStatus + '</li></ul>';

     /*  output= prjlist.split("&");
      proh=output.join("/n");
       */
     proh=prjlist.replace(/&/g, '<br>');
     status =statuss.replace(/&/g, '<br>');

            var Obj = {

                projectName: '<h3>'+ responseText[j].projectName +'</h3>',

                projectDescription: '<p>'+ proh + '<p>',


                 currentStatus: '<b>'+ "Current Status:" +'</b>' + '<br>'+  status 
                }

I am getting following output from DB for current Status value.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.41099 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO