emekadavid Posted April 8, 2015 Share Posted April 8, 2015 I have been trying to write a photo gallery with text accompanying it at the bottom. Photos and text will change with each click. I tried using an input tag as child of form tag with javascript code and it worked. But the input tag is interactive and allows only one line. By the way, it doesn't respect the <a> tag for crediting the photos. Therefore, I have been trying my hands on the figure element which will take the image tag and figcaption tag for photo and photo description. But, I cannot write the javascript. can anyone show me how? I wonder why the input tag is easy but figure and figcaption is difficult? Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted April 8, 2015 Share Posted April 8, 2015 It looks like you can just set the innerHTML property for the figcaption element. You could use the same property with other elements like a div or a span also. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now