toggle menu

Get particular HTML tag value from Full HTML script

Dhananjay Kumar |03 Oct at 11:10

Hi,

I have sloved one of my issues with using below script:

      if ((jQuery('.looping-tag-parent').length)>0) {
            //code
            displaytxt='<h4>View Content</h4><ul class="dksimmlist">';
            jQuery( ".looping-tag-parent" ).each(function() {
                var title = jQuery(this).find('p.product_title').html();
                var price = jQuery(this).find('p.product_price').html();
               
                displaytxt += '<li><span>'+title+'</span>'+price+'</li>';
                //alert(title + price);
             });
            displaytxt += '</ul>';
           
        }

 

I have get the looping tag with full html and in full html script inside "P" tag thats class name "product_title" and getting value using find() function.

Try this, its help you lots.

 

 

 

  • 0 like
  • 0 comment

Posted:

03 Oct at 11:10

Viewed:

947 times

Active:

12 Dec at 01:12