jQuery - Append text as a list -


i want append value list.but somehow not able that.

when try add it, gets overlapped other list.when add css rid of overlapping, not able take click event.you can see in below picture.

enter image description here

here code using append values list:

$.getjson('path json', function(data) {          $.each( data.markers, function(i, value) {              var radlat1 = math.pi * position.coords.latitude/180;             var radlat2 = math.pi * value.latitude/180;             var radlon1 = math.pi * position.coords.longitude/180;             var radlon2 = math.pi * value.longitude/180;             var theta = position.coords.longitude-value.longitude;             var radtheta = math.pi * theta/180;             var dist = math.sin(radlat1) * math.sin(radlat2) + math.cos(radlat1) * math.cos(radlat2) * math.cos(radtheta);             dist = math.acos(dist);             dist = dist * 180/math.pi;             dist = dist * 60 * 1.1515;             dist = dist * 1.609344;             if(dist<10){             var mylatlng = new google.maps.latlng(value.latitude, value.longitude);              var marker = new google.maps.marker({             position: mylatlng,             map: map,             title: "text "+value.longitude             });              $(".newclasscheck").append("<li>"+value.content+"</li>");             }          }); }); 

and php code follow appending :

    <ul class="newclasscheck"></ul>                 <ul class="check">                 <?php                     foreach($result $results)                     {                         $atag = "#filter-list-".$results->fax;                         $results->wpsl_id;                         $results->store.'<br/>';                          $results->address.'<br/>';                          $results->address2.'<br/>';                         $results->city.'<br/>';                         $results->state.'<br/>';                         $results->country.'<br/>';                         $results->description.'<br/>';                         $results->phone.'<br/>';                         $posts[] = array('latitude'=> $results->lat, 'longitude'=> $results->lng, 'area'=>$atag, 'content'=> $results->store);                  ?>                 <li class="area-element <?php echo $results->fax;  ?>"><div><p><strong class="lstore <?php echo $results->store; ?>" data-value-lat="<?php echo $results->lat; ?>" data-value-lng="<?php echo $results->lng; ?>"><?php echo $results->store; ?></strong><span class='wpsl-street'><?php echo $results->address;?></span><span class='wpsl-street'><?php echo $results->address2;?></span><?php echo $results->city ."". $results->state ."".$results->zip ; ?></p><span><a href="?page_id=417&store_id=<?php echo $results->wpsl_id ?>" class='more-details'>more details</a></span></div></li>                   <?php                      }          ?> 

what should print out same list check class having? lacking ?


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -