javascript - How to show just the content from the div tag -


in following div tag, want store content "bank towers, commissariat road, m g road bangalore" variable. how possible ?

<div class="infowindow1">      <div class="infowindow">           bank towers, commissariat road, m g road bangalore      </div>      .      <br/>       <br/>      <div class="infowindow">           <b>working hours: </b>           <br/>           08:30 - 21:00      </div> </div> 

thanks in advance !!

var variable = document.getelementbyid('yourdivid').innerhtml; 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -