1)apply styles to elemnt through js 2)get the attribute of html thtough js -->by uing getAttribute() method 3)setAttribute() methos is used to set the class 4)classList.add() -->this is used to add class 4)classList.remove() -->this is used to remove class
hi, how can I store CSS value(ex: background color of a div) in JS, if I want to store div background color in a variable and later can I use that variable to color another element? I've tried below method but it's not working at all. tag = document.getElementById("one"); var styles = window.getComputedStyle(tag); var tagColor = style.getPropertyValue("color");
Everything is fine mam but some voice disturbance is there mam. Apart from your way of explaining fabulous mam. Tks alot for making this type of videos
In javascript if you are trying to access /update any html elements before it's occurence then it shows error.So always prefer to write javascript at end of body tag
Medam your teaching and complete everything is good but voice disturbances and length of video also lengthy compared to another channel try to reduce that .
Can you make a video on whenever we click on a button in the nav bar it redirects to a specific part of same htm page for example in the nav bar we click on home button that related content is dispalyed on a particular section in the screen ( a part of body) like that again click on something option like for example categories then that category section will be dispalyed on the same section that is home page diplayed before b
var z=document.getElementById("fn") console.log(z.getAttirubute('value')) z.setAttribute('value',"xyz") ERROR :- practive.html:28 Uncaught TypeError: x.getAttirubute is not a function at practive.html:28:23 I WANT RESULT, THIS TYPE ERROR
1)apply styles to elemnt through js
2)get the attribute of html thtough js -->by uing getAttribute() method
3)setAttribute() methos is used to set the class
4)classList.add() -->this is used to add class
4)classList.remove() -->this is used to remove class
Good
one of the best and efficient narrating the concept, Thank you so much
My pleasure
Excellent teaching madam
Thank you
Your teaching is well mam. I have some douts but don't this vedio .
Thank you,ask
classList.add("two","three","four"); ila kuga rasko vachu madam separate ga kakunda.
Yes can add,by cama seperate
hi, how can I store CSS value(ex: background color of a div) in JS, if I want to store div background color in a variable and later can I use that variable to color another element? I've tried below method but it's not working at all.
tag = document.getElementById("one");
var styles = window.getComputedStyle(tag);
var tagColor = style.getPropertyValue("color");
use backgroundColor
color is for text color
Everything is fine mam but some voice disturbance is there mam. Apart from your way of explaining fabulous mam. Tks alot for making this type of videos
Thank you so much,Glad that you like my teaching,that is fan noise.
Akka difference between class list.add() and .setAttribute()?
Classlist.add only for adding class names,using set attribute you can set any attribute like class name,id,title ...
akka multiple styles oke line lo ivvalema. Nv separate lines lo rastunnav for color, margin,padding etc...
Object form lo ivvali,there I mentioned only single style each time
mind-blowing explanation madam. madam meeku instagram undha?
Thanks you
This is my email id
csworlddoubts@gmail.com
@@csworldtelugu thank you
instagram.com/csworldtelugu
How do I multiline comments in the javascript shortcut key??
Ctrl+/
Shift+alt+a
Hi akka I have one dought
Script is your Wright only body part
But I am writing to the head part is not working why
In javascript if you are trying to access /update any html elements before it's occurence then it shows error.So always prefer to write javascript at end of body tag
Medam your teaching and complete everything is good but voice disturbances and length of video also lengthy compared to another channel try to reduce that .
Thank you so much
Akka konni chotla ' ' idi inko chota" " vaduthunnav ela gaina vadocha ?
Yes
Madam 17minute 30 seconds daggara vere folder images open kavatle ..dot tho kuda ala open cheyyali
Show the path you used?
@@csworldtelugu
0) my program location--vs code= C:\Users\DELL\OneDrive\Desktop\html\amazon shopping\public\javascript\23.2.html
1)--C:\Users\DELL\OneDrive\Desktop\html\amazon shopping\public\images\Angular.jpg=system path
1)
1 --> open avuthundi
2)-- C:\Users\DELL\OneDrive\Desktop\html\amazon shopping\public\javascript\fc.png
open avvatle
Meru path aa file related means ../ like or absolute means from the folder which you opened in vacode
@@csworldtelugu kinni open avuthunnae kinni kavatle andhukani madam
Can you make a video on whenever we click on a button in the nav bar it redirects to a specific part of same htm page for example in the nav bar we click on home button that related content is dispalyed on a particular section in the screen ( a part of body) like that again click on something option like for example categories then that category section will be dispalyed on the same section that is home page diplayed before b
Or you can suggest me to done that what I have to learn frames are available but that's too old
Hi you have to write like below
Section1
This is section1
Give id to the section in achor tag href you have to give #id of section
@@csworldtelugu tnq👏👏😗😗
@@kishorereddy7187 welcome
ela unnav swathi
Good
Mam naku oka doubt ee styles avvani manam css file lo easy ga change cheyyachu kada mari js lo nduku change cheyyadam
If you want to add it dynamically then javascript helps
styles lo image paytavacha
Yes
Thanks mam
Welcome
Nice explanation 👌, from where are you learning this all concepts?.
Thank you,Books & Internet
@@csworldtelugu thanks for the reply, can u please share those books names and official documents,
Name:
var z=document.getElementById("fn")
console.log(z.getAttirubute('value'))
z.setAttribute('value',"xyz")
ERROR :-
practive.html:28 Uncaught TypeError: x.getAttirubute is not a function
at practive.html:28:23
I WANT RESULT, THIS TYPE ERROR
Send your full code to csworlddoubts@gmail.com