Articles on Trending Technologies

Technical articles with clear explanations and examples

String Concatenation by concat() method.

Alankritha Ammu
Alankritha Ammu
Updated on 11-Mar-2026 265 Views

You can concatenate two strings using the concat() method of the String class. This class concatenates the specified string to the end of this string.Examplepublic class Test {    public static void main(String args[]){       String str1 = "Krishna";       String str2 = "Kasyap";       System.out.println(str1.concat(str2));    } }OutputkrishnaKasyap

Read More

How to find a matching substring using regular expression in C#?

Samual Sam
Samual Sam
Updated on 11-Mar-2026 2K+ Views

Our string is − string str = " My make "; Use the following regular expression to find the substring “make” @"\bmake\b" Here is the complete code − Example using System; using System.Text.RegularExpressions; namespace RegExApplication { public class Program { private static void showMatch(string text, string expr) { Console.WriteLine("The Expression: " + expr); MatchCollection mc = Regex.Matches(text, expr); ...

Read More

CSS3 Multi-Column column-span Property

Ankitha Reddy
Ankitha Reddy
Updated on 11-Mar-2026 77 Views

The column-span property is used to specify the span between columns. You can try to run the following code to implement column-span property using CSS −Example    .multi {       /* Column count property */       -webkit-column-count: 4;       -moz-column-count: 4;       column-count: 4;       /* Column gap property */       -webkit-column-gap: 40px;       -moz-column-gap: 40px;       column-gap: 40px;       /* Column style property */       column-rule-style: solid;       column-rule-color: #ff00ff;     ...

Read More

Java Program to Print Pyramid Star Pattern

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 802 Views

In this article, we will understand how to print pyramid star pattern. The pattern is formed by using multiple for-loops and print statements. Below is a demonstration of the same − Input Suppose our input is − Enter the number of rows : 8 Output The desired output would be − The pyramid star pattern : * * * * * * * * * * * * * * * * ...

Read More

How to load external website into an <iframe> using jQuery?

Amit D
Amit D
Updated on 11-Mar-2026 39 Views

To load an external HTML into using jQuery, use the attr() method. In that set the source for iframe. You can try to run the following code to learn how to locate external HTML −Example $(document).ready(function(){    $('#iframe').attr('src', 'https://www.qries.com'); });

Read More

What is the difference between jQuery add() &amp; jQuery append() methods in jQuery?

Amit D
Amit D
Updated on 11-Mar-2026 417 Views

jQuery add() methodIf you want to add element to an existing group of elements, then use the add() method.ExampleYou can try to run the following code to learn how to work with jQuery.add() method:   $(document).ready(function(){     $("h1").add("span").css("background-color", "yellow");   }); Tutorialspoint Text Tutorials for free. Video Tutorials for free. jQuery append() methodThe append() method appends content to the inside of every matched element.ExampleYou can try to run the following code to learn how to work with jQuery append() method:               jQuery ...

Read More

What is the difference between Grep and Filter in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 1K+ Views

The grep() method finds an element and the filter() method returns elements matching a specific criteria.jQuery grep functionExampleThe grep() function is used to find an element of an array. You can try to run the following code to learn how to work with grep(),   jQuery grep() function     div {     color: blue;   }   p {     color: red;     margin: 0;   }       var arr1 = [ 1, 7, 4, 8, 6, 1, 9, 5, 3, 7, 3, 8, ...

Read More

How to filter object array based on attributes in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 2K+ Views

To filter object array based on attributes in jQuery, use the map() method with JSON.ExampleYou can try to run the following code to learn how to filter object array based on attributes in jQuery, $(document).ready(function(){    $(document).ready(function(){     var json ={"DEPARTMENT": [             {                 "id":"1",                 "deptemp":"840",                 "shares":"1100",                           },             {                 "id":"2",                 "deptemp":"1010",                 "shares":"1900",                   }, {                 "id":"1",                 "deptemp":"350",                 "shares":"510",             },             {                 "id":"2",                 "deptemp":"575",                 "shares":"1900",             }]};            json.DEPARTMENT = $.map(json.DEPARTMENT,function(val,key) {               if(Number(val.deptemp) = 500) return val;            });         for(var i in json.DEPARTMENT)        $("p").html("Department Employees: "+json.DEPARTMENT[i].deptemp+" ,  Shares:"+json.DEPARTMENT[i].shares)     }); });

Read More

What is the difference between jQuery.map() and jQuery.grep() Functions in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 625 Views

The jQuery map function translates a set of elements in the jQuery object into another set of values in a jQuery array which may, or may not contain elements. The grep() function is used to find an element of an array. The difference is we use $.grep to filter an array and $.map to apply a function to each item in the array.jQuery map functionThe map method translates a set of elements in the jQuery object into another set of values in a jQuery array which may, or may not contain elements.The following are the parameters of jQuery.map() method:callback − ...

Read More

How to traverse Data Object Model (DOM) nodes using jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 471 Views

jQuery traversing is used to find elements based on what is their relation twith other elements. You need to begin with one selection and move ahead till you the reach the elements you want.jQuery is a very powerful tool which provides a variety of DOM traversal methods to help us select elements in a document randomly as well as in sequential method.Let’s filter out the elements by traversing. The filter( selector ) method can be used to filter out all elements from the set of matched elements that do not match the specified selector(s).ExampleThe selector can be written using any ...

Read More
Showing 281–290 of 61,248 articles
« Prev 1 27 28 29 30 31 6125 Next »
Advertisements