Javascript Tutorial | Targeting DOM Elements

preview_player
Показать описание
Returning the entire document object is not beneficial when working with the DOM. In this case we'll run some methods on the document object and have a single object returned for one DOM node. Modifying this object will effect the DOM element itself, also we'll look at targeting multiple DOM element's that are returned in an array.

Рекомендации по теме
Комментарии
Автор

I love you. Better than 3 days of smashing my head into my college documentation.

AleixCastells
Автор

Concise, clear; awesome. Hoping you make more other lectures.

legartjgart
Автор

awesome video, very thoroughly explained

modestas
Автор

that was awesome and clear
I have a question about performance code
lets say i want to select slider_slid
what is the best way to select it
select id first then go to childrens loop there to change styles or edit them?
or just select by class name

what if i got element by id slider-Blocks and then i wanted to select slide_to_left how to do that ?can i do it without loop ?
<div id="slider-Blocks">
<div class="slider_slid">

</div>
<div class="slider_slid slide_to_left" >

</div>
<div class="slider_slid" ">

</div>
</div>

hamodeyDooba
Автор

hi Avelx, kindly assist the format for an online shoes store .(1)-can I add iife in function shop ?

function Shop( ){
var shoes:[{design:"loafers", and other types object"}];//shoes array pictures;


looping picture space;
buy( );
output eg receipts;

}//(2)-must prototype objects be added after closing the function literals?;

shoes.prototype:{add:"method", remove:"method", share:"method"};//object constructor effects after sale;
var karibu=new shop( );

(function buy(mode of payment, arguments){
var customer:{name:"xyz", others object"};//customers details;

onclick, buy the selected item;
return{
function client(){
commands to be executed;
if(payment ===price){"approved failed"}//verification;
};
};
})(parameters, ways to pay);

adhoccreative
Автор

document.body.contentEditable = "false
"; document.designMode = "on"

completion(false)'

Kennyissoagod