*not looking for code to be provided, just want to know if its possible.
For example. I have an h2 class named "stock-number" and its value is #NC123456. Can javascript read each instance of that class, fetch data from another database using that value, and display the results in another class.
Real world example would be if I sold TVs. The TV has an msrp and inventory is retrieved from one database. However, we can set a sale price. and the discounts and rebates are from another database, sorted by that tvs stock number.
Can I read that stock number, pull the pricing break down from the other database, and display in back into the page underneath the sale price in its own div so customers understand their savings?