skip to Main Content

Add color to the last-child – CSS

.d1 { display: flex; justify-content: space-between; } .d1>div { display: flex; flex-direction: column-reverse; justify-content: flex-end; } .d1>div>span:last-child { color: green; font-size: 30px; } .d1>div>span:nth-child(2n) { color: red; } .d1>div>span:nth-child(2n+1) { color: blue; } <div class="d1"> <div> <span>2</span> <span>+3</span> <span>5</span> <span>+6</span>…

VIEW QUESTION

Form validation in Reactjs onchange input fields – Html

Hello I am new learner of react. anybody please help me in form validation on(onchange) input Fields <Form.Group className="mb-3" controlId="Username"> <Form.Label>Username</Form.Label> <Form.Control type="text" placeholder="Lastname" name='username' value={Validation} onChange={textchange}/> </Form.Group> <Form.Group className="mb-3" controlId="formBasicEmail"> <Form.Label>Email address</Form.Label> <Form.Control type="email" placeholder="Enter email" name='email' value={Validation.email} onChange={emailchange}/>…

VIEW QUESTION

Json – Selecting elements with querySelector

<div id="~" class="dm-post-0 well clearfix post listview" data-identifier="~" data-relative="https://url_that_i_want_to_capture" data-feed="~"> let convertEntries = () => { "use strict"; let target = [...document.getElementsByClassName("listview")]; let result = []; target.forEach((element) => { result.push({ title: element.querySelector(".list-header strong").textContent, url: element.querySelector("#listview").dataset.relative, }); }); return result; };…

VIEW QUESTION
Back To Top
Search