Aman Gupta

Aman Gupta

66 Articles Published

Articles by Aman Gupta

Page 5 of 7

How to create Portfolio Gallery using the HTML and CSS

Aman Gupta
Aman Gupta
Updated on 15-Mar-2026 2K+ Views

A portfolio gallery is a collection of images and videos that showcase past work or achievements. Using HTML and CSS, we can create an attractive, responsive portfolio gallery that displays multiple project cards in a grid layout. Syntax The basic structure for a portfolio gallery uses flexbox for responsive layout − .gallery { display: flex; flex-wrap: wrap; gap: spacing; justify-content: center; } .card { width: fixed-width; height: fixed-height; ...

Read More

How to find class of a clicked element using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 3K+ Views

Overview We can easily find the class of the clicked element, the Jquery provides various methods which return the class name of the element when the element is clicked. The Jquery methods "attr()" and using "this.className" properties helps to find the class of an element. So to learn more about these methods we will be seeing the Examples which will cover both the methods. A class name is an attribute which defines the group or type of the data inside the tag. There can be different tags or elements which can contain the same class names but there in case ...

Read More

How to Find the Text on Page in ElectronJS?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 995 Views

Overview A find text on a page is a feature which helps a user to find a word on the page. An electronJs is an open source framework which creates a desktop application which can run on every operating system with its cross platform compatibility. The electronJs has many predefined instance methods with their respective functionality. So to build this feature of find text on page the electronJs provides a "findInPage" method which takes the current focused window and scans all the text on the page. Syntax For finding the text on page, the electronJs provides the below Syntax for ...

Read More

How to find element by text using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 2K+ Views

Overview The Jquery consists of a predefined method which makes it easy for the developer to build this feature. The Jquery provides a selector Syntax by which we can find any text element. So the ":contains" selector is used for finding the text in any element. To learn fully about this ":contains" selector we will be developing this feature through an Example. Syntax The Syntax for finding the text in an element is given below − $(selector:contains()); selector − The selector in the above Syntax is termed as any element or class or id name which is ...

Read More

How to find all inputs with a value Green and change the text of next sibling span using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 238 Views

Overview Using Jquery we can create this feature, as Jquery library provides the methods for changing the span text to the value of the input value. In this feature we should have a prior knowledge of the basic HTML and the Jquery. So the Jquery provides the methods as next() and text(), these two methods play a vital role in building this feature. We will also use a few styling methods to make the change visible from other normal text. Syntax The Syntax used in this feature is − $(selector).next().text("text"); selector − The selector in the above ...

Read More

How to find all the elements that are disabled in jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 2K+ Views

Overview The disabled elements are the elements which are not usable for the end user. These elements are disabled using the "disable" attribute. So using the JQuery library we can find all the total number of disabled elements in a HTML page. Using the Jquery selector we can find all the disabled elements by passing the ":disabled" pseudo selector. The ":disabled" selector will select all the elements in the top−down approach. This approach will scan all the disabled attributes and will list it out in a variable. Syntax The Syntax used in this approach is − $(":disabled").each(function () { ...

Read More

How to find all the children with specified class using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 3K+ Views

Overview Jquery is a library which contains various predefined methods with their specific functionality. So to get all the children elements which contains the specific class with their tags can be achieved with the Jquery children() method. The Jquery children() method takes a single argument as the condition at which the set of data will be returned. As we want to find all the children with the specified class so we will be passing the class name as the argument within the method to find all the specific class. Syntax The Syntax used in this approach is − $(element).children(className); ...

Read More

How to filter children of any elements using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 433 Views

Overview JQuery is a great JavaScript library which contains many pre−built methods which helps us to perform a certain function without writing a number of lines of code. An element in jQuery can be considered as any HTML element which is a parent of another element. So the elements inside an element are also termed as the children of that element and the container in which the children elements resides are the parent element. So to filter out the children of any element using the jQuery can be achieved using the jQuery children() method and the CSS (Cascading Style Sheet) ...

Read More

How to find textareas and makes a border using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 264 Views

Overview For finding any element Jquery provides the best Syntax for the selector, it gives us a one line code for selecting any element from the HTML document. So to find all the textareas in the HTML we will be using the Jquery selector which will select the textareas and then by using the Jquery CSS(Cascading Styles Sheet) manipulation we will be making a border around the textarea. The border makes a User Interface more attractive. Syntax The Syntax for selecting and styling any element in Jquery is given below $(selector).css(); $(selector) − . For selecting any ...

Read More

How to Filter an Array based on the user input in AngularJS ?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 409 Views

Overview An array can be a collection of anything but should be of the same data type. We can store any digit and text of the array, so to filter the data from an array using the AngularJs can be achieved by some key value attributes pair. The filter rule plays a key role to create this feature, there are also some AngularJs attributes that play a major role to build this feature these are: ng−model and ng−repeat. The ng−model attribute defines the input type text search box to connect with the ordered list and filter it out an array. ...

Read More
Showing 41–50 of 66 articles
« Prev 1 3 4 5 6 7 Next »
Advertisements