#20 Taking Input from user in JavaScript | TextBox

preview_player
Показать описание
In this video tutorial we will learn how to take input from user from a HTML textbox using JavaScript.
We will be using the document object & its getElementById() method to access the HTML textbox which has assigned its unique ID. and then use the value properly to access the value inside the textbox.

Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

Video by - Tanmay Sakpal
Рекомендации по теме
Комментарии
Автор

Very Simple code, for the assignment which you gave.
<script type="text/javascript">
function validationtest()

{
var usertext=
var paswrdtext =
if(usertext == paswrdtext)

{
alert("Correct");
}
else{
alert("Incorrect");
}
}
</script>
<body>
Enter UserName:
<input type="text" id="ustxt1">
<br><br>
Enter Password:
<input type="password" id="psw">
<br><br>
<button id="btn" onclick="validationtest()"> Check UserName and Password</button>
</body>

kmuralikrishna
Автор

Literally telling bro, it was so helpful. You know some things can't be expressed in words. Same is here. I finally ended up with my doubt. Too good bro from my heart🥰

risshimalhotra
Автор

I love the keyboard sound😍😂😂 don't know why

madhav
Автор

I liked your voice and the Indian English...seemed like a true Indian tutorial. Thanks

SumanDevi-rxjd
Автор

I Am Going Through Comments And I Saw Peoples Are Taking Var For A Such Simple Function

You Don't Even Need Variables For This

function check()
{

{
alert("Username And Password Matches.");
}
else
{
alert("Username And Password Does Not Matches.")
}
}

shishirtiwari
Автор

thanks bro. your works is very beautiful and your english is very smart for an indian...

abhidadhaniya
Автор

thank you SO SO SO much. :D this really helped me!

justeccasmith
Автор

best video since the dawn of time literally no exaggeration

calebtyler
Автор

Thanks for the video I learned a lot from this and I'm actually executing this code through my mobile phone because I don't have laptop 😂 but I actually did this:
<script type="text/javascript">
function hihi()
{
var str =
var str1 =

if (str == str1){
alert("the password match");
}
else{
alert("the password does not match");
}
}



</script>
<body>
<input id="haha">
<br>
<input type="password" id="haha1">
<br>
<button onclick="hihi()">Click Me </button>
</body>

peleboykulot
Автор

Thank you for the explanation. Because of this I subscribed and liked the video. I really needed to learn this

rishavsarkar
Автор

Nice!!!!
you are doing excellent work.
Thanks a lot for making such type of videos there are very helpful for learning javaScript

sandipkakade
Автор

I'm 2nd;-)Good work..thanks for the efforts:-)

keerthidammu
Автор

//Answer for the If else Statement Implementation//

<html>
<head>
<title>My Title</title>
<script type="text/javascript" >
function chetri()
{
var str
if (darshan.value == darshan1.value)
{
alert("Value inside the text box is "+str)
}
else
{
alert("Not Matching")
}
}

</script>
</head>
<body>
<input id ="darshan" placeholder="Username">
<br><br>
<input id ="darshan1" type="password" placeholder="Password">
<br><br>
<button

</body>
</html>

darshanchetri
Автор

Sir can u make a series on Java GUI (Graphical User Interface) how we use its component and make any project thanks🙂

rubidoll
Автор

Hi Tanmay, thank you for amazing tutorials,
Could you please add the solution to homework in the comments or something?
Thank you

Glebtc
Автор

Any of the cloud computing tutorial on Amazon Web services, Microsoft Azure

shrikantbaral
Автор

You really tell lesson so well. It is so understandable. Thanks so much.

vedatsozen
Автор

i had a fear of javascript until i saw this video.cant thank you all enough

swarajathimusicals
Автор

Very simple and clear video, thanks man!

acblaze
Автор

This helped me. I understand how to do it using JQERY but I needed to hard code this as part of a project.

TrobadourXP
join shbcf.ru