MikariStar on DeviantArthttps://www.deviantart.com/mikaristar/art/Webdesign-Tutorial-12-309424378MikariStar

Deviation Actions

MikariStar's avatar

Webdesign Tutorial 12

By
Published:
513 Views

Description

boxid, etc. are not meant as the actual id, but to say "the id goes here" when actually using these codes the ids must be unique to each element and the JS must reference the id belonging to the element it's interacting with.

Tutorials/Personal: azurelight.net
Fansites: genkigirl.net
Deviant Art: mikaristar.deviantart.com
Fanart Central: fanart-central.net/user/AzureM…
Artrift: artrift.com/Mikari/
Tumblr: mikariazure.tumblr.com
Instagram: instagram.com/azurepixel/
Twitter: twitter.com/miliazure
Image size
745x746px 32.72 KB
© 2012 - 2024 MikariStar
Comments4
Join the community to add your comment. Already a deviant? Log In
TehAngelsCry's avatar
Noticed a little error!

Your JS beneath each piece of HTML isn't targeting the ID of the input field. Taking the first one as an example, it's id="boxid", but in the JS below you're trying to target an element with id="boxname". This should be "boxid" :) 

document.getElementById("boxid").value();