Westside2004
asked on
Extract text using javascript from within a div?
Would someone please tell me how to extract the street address, city, state, and postal code from within this HTML div using javascript into 4 separate variables?
<div class="address">
123. Broadway
<br>
New York, NY 10009
</div>
var streetAddress = "";
var city = "";
etc, etc.
Thanks in advance for any help
<div class="address">
123. Broadway
<br>
New York, NY 10009
</div>
var streetAddress = "";
var city = "";
etc, etc.
Thanks in advance for any help
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.