Search the Community
Showing results for tags 'please'.
-
i wanted to use this sample code from code pen http://codepen.io/emilioincerto/pen/yaVzJd However, when i want to use it my java script isn't working Here is my code. <!DOCTYPE html> <html> <head> <script src="../java/java2.js"></script> <title> </title> </head> <body> <h1>Shopping List</h1> <ul class="shopping-list"> </ul> <div> <input type="text" id="item" /> <button id="b1" value="Add">Add</button> </div> </body> </html> ************This is JavaScript*********** $(document).ready( function(){ $("#b1").on("click", function(){ //grab the value of input element with id item and set it to userinput var userInput = $("#item").val(); //log userinput to the console console.log( userInput ); var shoppingItem = $(document.createElement("li")); //shoppingItem.addClass("item"); shoppingItem.html(userInput); if (userInput.length > 3){ $("ul.shopping-list").append(shoppingItem); //clear all input fields $("input").val(""); } }); $("ul").on("click", "li", function(){ console.log("test number two"); $(this).remove(); }); } );
- 3 replies
-
- help
- javascript
-
(and 3 more)
Tagged with:
-
ok... i have been working on this thing for a month or so now..im really pissed and need some verification... the last post i posted what actually ALMOST fine.. the only trouble was my explore i suppose.. anyways.. now my explore is NOT my problem any longer.. but google chrome is at this point at an another project.. (pictures added..) i mean.. what?... this is my php file: function stdhead($sitename = '',$css_style = ''){$HTMLOUT = "";//Starting Variable...$HTMLOUT .= "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' /><link rel='shortcut icon' href='favicon.ico' /><title>$sitename</title><link rel='stylesheet' type='text/css' href='themes/1/$css_style.css'></head><body><a name='top'>";$HTMLOUT .= "<div id='header'>";$HTMLOUT .= "Header/Banner/Logo...";$HTMLOUT .= "</div>";//Ending Header...$HTMLOUT .= "<div id='statusbar'>";$HTMLOUT .= "StatusBar";$HTMLOUT .= "</div>";//Ending StatusBar...$HTMLOUT .= "<div id='menu'>";$HTMLOUT .= "<a href='index.php'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "</div>";//Ending Menu...$HTMLOUT .= "<div id='content'>";$HTMLOUT .= "Content";return $HTMLOUT;}//STDHEAD FUNCTION ENDS...function stdfoot(){$stdfoot = "";//Starting Variable...$stdfoot .= "</div>";//Ending Content...$stdfoot .= "<div id='footer'>";$stdfoot .= "Footer";$stdfoot .= "</div>";//Ending Footer...$stdfoot .= "</body></html>";return $stdfoot;}//STDFOOTER FUNCTION ENDS... and this is my CSS file: /* CSS Document */* {padding: 0em;margin: 0em;}html {width: 100%;}body {background-color:#2f2f2f; /*Original: 464646*/}#header {/*background: url('pics/head.jpg') top center no-repeat;*/height:100px;width:100%;background-color:#111111;color:#999;}#statusbar {/*background: url('pics/head.jpg') top center no-repeat;*/height:30px;width:100%;background-color:#222222;color:#999;}#menu {/*background: url('pics/head.jpg') top center no-repeat;*/height:30px;width:100%;background-color:#222222;color:#999;}#content {height:100px;width:100%;background-color:#333333;color: #ffffff;}#footer {height:auto;width:100%;background-color:#444444;color: #ffffff;} ideas?...
-
website corpuschl.com wont fit to all screen sizes and resolution if \some one could help with ideas and ways to get this to do so i would be greatly appreciative. if we use fluid design through cs6 will the text re size too because it is set in pixels and not percentages. PLEASE HELP!!! good Samaritans needed !
- 3 replies
-
- fluid design
- screen fit
-
(and 3 more)
Tagged with:
-
Hi,If someone needs a course on JavaScript... I KNOW A GREAT ONE!!It includes over 36 lectures and 25.5 hours of content!! It REALLY taught me JavaScript.HereĀ“s the link: http://ude.my/2es9xBest wishes
- 2 replies
-
- course
- JavaScript
- (and 4 more)