Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,445,565 members, 5,507,539 topics. Date: Friday, 03 April 2020 at 12:47 PM

Javascript, Jquery, Html 5, Css 3.... - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Javascript, Jquery, Html 5, Css 3.... (1129 Views)

Free Online Training For Html/css, Javascript, Jquery, Mysql, Php, Java, Android / HTML 5, CSS 3, Javascript, C, C++, Java / My Web Development Consultancy Thread(html, CSS, Javascript, Jquery, ASP.NET) (2) (3) (4)

(1) (Reply) (Go Down)

Javascript, Jquery, Html 5, Css 3.... by Easyjay: 1:28pm On Jan 02, 2016
If you need any help or run through on any problem with respect to any of the scripting languages : JAVASCRIPT, JQUERY, HTML 5, CSS 3.. Post it here and i will try as much to come back here every night and offer to help.

1 Like

Re: Javascript, Jquery, Html 5, Css 3.... by rushman003: 2:04pm On Jan 02, 2016
Sir easy how do I make a drop down selection button to collect it's option field from an I'd created and also an amount field to automatically bring up the price of the selected field then multiply it by it quantity?

Thank you
Re: Javascript, Jquery, Html 5, Css 3.... by Easyjay: 4:33pm On Jan 02, 2016
rushman003:
Sir easy how do I make a drop down selection button to collect it's option field from an I'd created and also an amount field to automatically bring up the price of the selected field then multiply it by it quantity?

Thank you
Ok, i will modify this reply when i get hold of my PC ( later in the night). But before then, i understand your 1st question, you want to create a drop down menu and make use of whatever the user selects using an ID tag... Good.
But your second question, if you can try to reframe it. I will check back and type out the code later... Sorry, i hardly go out with my other PC...
Re: Javascript, Jquery, Html 5, Css 3.... by Easyjay: 10:48pm On Jan 02, 2016
i tried using php but then i realised php wasn't included in my heading. anyway, use this and lemme know the result for the 1st question.


<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function drop(){

var dropdownmenu = document.getElementById('dropmenu') ;
var selectedmenu = dropdownmenu.options[dropdownmenu.selectedIndex].text;

From here you can do whatever you want to do with your value(selectedmenu)

alert(selectedmenu);
}
</script>
</head>


<body>
<select name="dropdown" id="dropmenu">
<option value="1">something</option>
<option value="2">Another thing</option>
<option value="3">this other thing</option>
</select>
<input type="button" name="submit" value="get input" onclick="drop();"/>
</body>
</html>

/////////////////////////////////

and jquery


alert($('#dropmenu').val());

Re: Javascript, Jquery, Html 5, Css 3.... by Easyjay: 11:51pm On Jan 02, 2016
i went through your second question again and i figured something. if thats what you really want.

you can create a jquery event function that when an item is selected , an array function runs to check with the selected item and its corresponding price is shown.
Re: Javascript, Jquery, Html 5, Css 3.... by rushman003: 6:33am On Jan 08, 2016
Yea! Thanks for the second answer exactly what I needed. Have not completed my jquery tutorial Ni. To the first one, I have an empty drop down menu what I want is that if user add something. Eg a user add class room now in school management system and you wanna register the student under that class. You it will be different menu like add class and add student. So when you wanna add a student to the class automatically the class you added should become an option under class for the student and if you add another class it will b automatically added to the drop down again. Thanks
Re: Javascript, Jquery, Html 5, Css 3.... by Easyjay: 8:49pm On Jan 10, 2016
I saw your reply the very day you posted it but my head was hot then, i could not read through it... But now i have tried to get through your reply but for real i couldnt quite get you... Maybe you can share your code and i will try to see IF i can debug it or may you just tell me want you want to do or expect. You are welcome

(1) (Reply)

Let's share work experiences.. / OST Recovery Tool / Good News! Nokia To Establish Mobile Software Laboratory In Nigeria

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 44
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.