reset password
Author Message
MariahM
Posts: 35
Posted 22:34 Jan 19, 2015 |
Does anyone know if we can get the alt attribute from an image and store it in a string ? I Couldn't figure it out so I just used the image file names and if statements
giraid
Posts: 39
Posted 21:49 Jan 20, 2015 |

I used a switch statement as well. But come to think about it, it probably could be done, can you do something like 

println("<img src=\"images/" + post.image + ".png\" alt=\"Steve\" class=\"img-circle img-responsive\" />"); ?