select the first elemnt have class in jquery
$( ".box" ).first().css( "font-style", "bold" );<script>
// jquery
$( "tr:first" ).css( "font-style", "bold" );
</script><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>first demo</title>
<style>
td {
color: blue;
font-weight: bold;
}
</style>
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<body>
<table>
<tr><td>Row 1</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 3</td></tr>
</table>
<script>
$( "tr:third" ).css( "font-style", "italic" );
</script>
</body>
</html>
Also in JavaScript:
- what is amqp10 policy nodejs
- reload a child component in angular
- led brightness website nodemcu
- jquery window trigger resize
- javascript get current url
- node js try catch
- sum prime numbers javascript
- perlin noise implementation on a graph js
- how to get create an array in javascript
- How do you select a particular option in a SELECT element in jQuery?
- jquery sort select options by text
- feathersjs quicstart
- firebase google yolo
- FAILURE: Build failed with an exception react native android
- onclick on fragment react
- jquery remove option from select by value
- chartts js 2 y axes label
- update formgroup value angular
- file ajax
- jquery select a dynamic element
- how to make a new file javascript
- javascript get last character of string
- store data in localstorage javascript
- How to send JSON Web Token (JWT Token) as header with Postman and golang