Quertas Posted September 11, 2015 Share Posted September 11, 2015 whats the code to put in other code so u can recall it at any time in order to not copy and paste it all over tons of times.. i think it is a fucntion but i cant seem to find it anywhere and i cant remeber what its called Link to comment Share on other sites More sharing options...
davej Posted September 11, 2015 Share Posted September 11, 2015 Can you give an example of what you are talking about? Link to comment Share on other sites More sharing options...
Ingolme Posted September 11, 2015 Share Posted September 11, 2015 With a function you can run a particular set of code multiple times, even giving it different values. You probably should read to the Javascript tutorial again, functions are one of the most fundamental aspects of programming. Link to comment Share on other sites More sharing options...
Quertas Posted September 11, 2015 Author Share Posted September 11, 2015 <select class ="sheet-select" name="attr_dexterity_select" value="0" style="width:600px"> <option value="0"> </option> <option value="1">Acting Ability - 1,2,3 +1/point charm skills</option> <option value="2">Acute hearing 2 +1d per,search/conceal,sneak</option> </select> <input type="number" name="attr_DEXTERITYpip" class="sheet-smallnumber" min="0" value="0" style="width:35px"/> <!-- there is alot more in the drop down menu, just gave u a small sample.. instead of copying andpasting i want a "place holder or function or sumtin" so i can just put in the code and it will call the code instead Link to comment Share on other sites More sharing options...
Ingolme Posted September 11, 2015 Share Posted September 11, 2015 HTML doesn't do that, only Javascript can. If you want to repeat HTML, there are ways to do it using a server-side programming language and including separate files. Link to comment Share on other sites More sharing options...
Quertas Posted September 11, 2015 Author Share Posted September 11, 2015 kk i was told that css can do it too.. 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