Link to home
Start Free TrialLog in
Avatar of Westside2004
Westside2004Flag for United States of America

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
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial