Programming Homework Help
Programming Homework Help. Simpliest way to grab alt text to a function
Very quick Q – what is the simplest way to grab the alt text to a function in JavaScript? I tried .alt already. Trust me, I have been trying to find this answer all day. This is my current function:
_______
function previewPic3(){
document.getElementById(‘image’).style = “background: #fff url(‘URL’)”;
}
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
![](https://courseworkgeeks.com/wp-content/uploads/2018/08/order_now-1.png)