Btw, this tutorial helps me a lot. I was confused a lot but then u came with this video to pull me out from that confusion and difficulty, thanks a lot. ❤️
thank you thank you thank you!!! using something simple like this for my website to basically add horsepower inputs to create a combined horsepower page for someone to calculate horsepower if there were to MOD their car... thank you again! it worked!!!
There's no need to write an if statement. You can also add them on this way. Here's the code. function myFunction() { var x = parseInt(document.getElementById("b1").value); var y = parseInt(document.getElementById("b2").value); var z = x + y; document.getElementById("demo").innerHTML = z; }
plz add this type video : I have a four textbox. first i give one number in first box textbox and other textbox we have value , then remaining three textbox automatically decrease the value and show that textbox 0
hi i look lot of videos but i cant find any thing which show how i can use code to add. id, code, then amount,date, update,delete. next page, if i want to know with code(serial number) how much amount have. or how many time i use this serial number serial number of a card. as bank card. but there is lot of cards. so if i want to know how many time i use it to add money or take out money.. can you make a example of this ? THANKS
Cant Understand only one thing and it looks very strange. If i save the result in a variable inside the function: var result=document.getElementById('result').value; result=num1+num2; the result wont show in its textbox. But if i write: var result=document.getElementById('result'); result.value=num1+num2; then everything is alright. Can you please explain me this???
In " var result=document.getElementById('result').value; " the "result" have the value of the textbox [ Ex: 1,2,999, 2348.................. ] and in " var result=document.getElementById('result'); " the "result" have the reference of the textbox so you can set the value to the textbox using the "result" var (result.value=num1+num2;)
Do you have the result outside the function? Because then it would be unable to pick up the variable, because if you write it inside, then it will ofcourse only count for inside the function and not out of it. Unsure of what's your problem as I cannot see the code.
off course it will work. He was made this with if else and on click function, you can do it with addEventListener grab value of operators and then with switch manipulate with numbers.
Is it JavaScript they use for the fantasy football websites to add your points up and everything? If so do u know a vid that shows how u do that? If not do u know what they use to do that.
Btw, this tutorial helps me a lot. I was confused a lot but then u came with this video to pull me out from that confusion and difficulty, thanks a lot. ❤️
Thank you so much bro, I've been struggling for my assignment and i found your video thank you
was trying to figure out why my code wasn't working for hours,, and the problem was a capital C in the word "calc" :)) happy it works now tho!
Thanks you 👍
Thank you man u solve my assignment ♥️♥️😅
Simple code but teached a lot of concepts..
Thanks 👍❤️
Perfect❗
thank you thank you thank you!!! using something simple like this for my website to basically add horsepower inputs to create a combined horsepower page for someone to calculate horsepower if there were to MOD their car... thank you again! it worked!!!
Thank you so much for making this video........... it really helped me a lot....
There's no need to write an if statement. You can also add them on this way. Here's the code.
function myFunction() {
var x = parseInt(document.getElementById("b1").value);
var y = parseInt(document.getElementById("b2").value);
var z = x + y;
document.getElementById("demo").innerHTML = z;
}
you need if statement to know what operation to do
THANK YOU SOOOOOOO MUCH MAN! THIS TUTORIAL IS THE POWERFUL ONE!!!! 😃😃😃😃😃😃😃😃😉😉😉😉😉😉😎😎😎😎😎😎
thanks this finished the last part I was struggling on
thank you, this fixed a huuuge bug i had
Thank you !
Great Tutorial!!
You saved my a**
Thanks!!
funny
Thanks
Thank you so mush!! very very good 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙌🙌😀😀
Thanks a lot❤
Thanks! It worked! ^^
Thanks a lot for your tutorial
thank you
just what I needed thanks g
Thanks a bunch lad, helpful !
thank u ,u helped me alot
Thank you for concept .I’ll try this in my project ❤
thanks
Thanks bhai shukriya
Very good bro... but its would be better if u added the voice.
thanks sir
Thanks mate! (y)
Thanks man
Thanks !
Bro my code does not form a equal to sign
well it should be, are you puting the '=' in the right place?
Thanks bro
Thanks
I like it
thanks a lot
thanks man
hamasaaa khush rhooo ustaaad....
Can we also make use of radio button instead of Dropbox ?will it work the same?
thanks it good job (y)
i add 2 more values in your code but it's showing "" nul "" . is it compulsory to add all values ? . how to fix it
Thank you so much. Great tutorial 😍
thanks a lot :)
Nice sir
How add
2*3*8*5*3*5=
CREATE please
Good. But why is there no sound???
thank u
Haven't u put any voice over in this video? Or my device gonna stop working properly...?
Wow great! Would putting html elements around these such as divs have any impact?
NO impact
Aap kis text editor ka use krte ho?
Is there a way to do it without the button and only the select??
plz add this type video : I have a four textbox. first i give one number in first box textbox and other textbox we have value , then remaining three textbox automatically decrease the value and show that textbox 0
thanks sir! but i want to know how to do (a+bi)*(c+di)?
hi i look lot of videos but i cant find any thing which show how i can use code to add.
id, code, then amount,date, update,delete. next page,
if i want to know with code(serial number) how much amount have. or how many time i use this serial number
serial number of a card. as bank card. but there is lot of cards. so if i want to know how many time i use it to add money or take out money..
can you make a example of this ? THANKS
How do you set n2 to be a fix numeric value? So for example if you wanted to calculate the price of something: n1(qty) x n2($2.50)
you can add "readonly" to your input
like this --
or use a span instead
what do I do if I want add subtract to be buttons not a drop down? please help
just add the code for subtract to the button onclick event
Cant Understand only one thing and it looks very strange.
If i save the result in a variable inside the function: var result=document.getElementById('result').value;
result=num1+num2;
the result wont show in its textbox.
But if i write:
var result=document.getElementById('result');
result.value=num1+num2;
then everything is alright.
Can you please explain me this???
In " var result=document.getElementById('result').value; "
the "result" have the value of the textbox [ Ex: 1,2,999, 2348.................. ]
and in " var result=document.getElementById('result'); "
the "result" have the reference of the textbox
so you can set the value to the textbox using the "result" var (result.value=num1+num2;)
Do you have the result outside the function? Because then it would be unable to pick up the variable, because if you write it inside, then it will ofcourse only count for inside the function and not out of it. Unsure of what's your problem as I cannot see the code.
Switch is better than this or not
can you please add buttons, instead of typing numbers , use buttons i hope you can do it
could you please show me how to limit the answer to 2 decimal places - thank you in advance. 👍
document.getElementById('result').value = calculationResult.toFixed(2);
@@1BestCsharpblog WOW thank you so much - - but where do I put this statement (sorry for being so dumb)
Wont add decimal numbers that are bellow 1 , 0.5+0.5...
how to change result infinity to zero when 2/0
Is there a way to make this in c#/wpf
Atlast i found thia now i can make my own calculator
mine was works but the results just show for a sec. it doesnt show permanently, help me pls. Sorry for my bad english
whats happen when i give else part after the if part?
does this works if multiple dots(.) will be inputted? and how to make the dot appear only once?
you need to check the text field already contains a dot
watch this calculator tutorial to learn more
czcams.com/video/3Qt-wiMjV78/video.html
thanks :D
Whats is the problem i input 5 and 3 and to multiply it became 15555???? What happened????
i wrote all the functions properly but it is not coming in internet explorer properly
how to write square operation code?
please tell why it is not comming or tell othet methof
Would a switch statement work with all this?
off course it will work. He was made this with if else and on click function, you can do it with addEventListener grab value of operators and then with switch manipulate with numbers.
Is it JavaScript they use for the fantasy football websites to add your points up and everything? If so do u know a vid that shows how u do that? If not do u know what they use to do that.
no i don't know :(
Nyc
Hi I have a question. How i can do if I want the answer become blue and if negative answer become red ?
:-D
creating another class and add it to element, and when condition becomes true adding that class with style to that element.
how can i take any number of inputs ? how can i create array in HTTML ?
does not work for me at all
What software you use ?
netbeans
Lol, all these unanswered questions
mine wasnt working right because i put the script section in the body instead of the head in case anyone else did that lol
Sir output is not shown. What can I do
1 - find the problem
2 - fix the problem
3 - source code link in the description
@@1BestCsharpblog I tried and everything is correct but still I can't see the result
0:43
It doesn't work
bhai iska kasa banega ?
Example
a+b+c+d = e
e+ f= g
thank you
Thank you!