
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10483 Articles for Web Development

168 Views
The jQuery.find() method will return the descendant elements of the selected element.ExampleYou can try to run the following code to learn how to work with jQuery.find() method,Live Demo .myclass * { display: block; border: 2px solid red; padding: 2px; margin: 10px; color: red; } $(document).ready(function(){ $("ol").find("span").css({"background-color": "yellow", "border": "5px solid green"}); }); body div ol li The descendant element

398 Views
Use the jQuery find() method to locate descendant elements of particular type of elements in jQuery. The jQuery.find() method will return the descendant elements of the selected element.ExampleYou can try to run the following code to learn how to work with jQuery.find() method,Live Demo .myclass * { display: block; border: 2px solid red; padding: 2px; margin: 10px; color: red; } $(document).ready(function(){ $("ol").find("span").css({"background-color": "blue", "border": "5px solid gray"}); }); body div ol li The descendant element

362 Views
jQuery filter() methodThe jQuery filter() method will return elements matching a specific criteria.ExampleYou can try to run the following code to learn how to work with jQuery.filter() method, Live Demo $(document).ready(function(){ $("p").filter(".myclass").css("background-color", "gray"); }); Tutorialspoint Free Text Tutorials Free Video Tutorials Connecting Tutors jQuery find() methodThe jQuery.find() method will return the descendant elements of the selected element.ExampleYou can try to run the following code to learn how to work with jQuery.find() method, Live Demo .myclass * { display: block; ... Read More

468 Views
You would rather use it like below −jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");Note that jQuery does not have any security-related documentation on their site, but they are known to be aware of security and usually reacting quickly in case security issues are found within their library.SAPUI5 includes different versions of jQuery together with their own libraries, so also has the possibility to add custom security fixes to jQuery, if necessary.For more details you can refer to below SAP blog −https://blogs.sap.com/2017/04/30/how-to-include-third-party-libraries-modules-in-sapui5/

208 Views
The jQuery filter() method will return elements matching a specific criteria. The following are the parameters for the jQuery.filter() methods,S.NoParameterDescription1criteriaThis specifies a selector expression, or one or more elements. These elements are returned from a group of selected elements.2function(index)This specifies a function to run for every element. This is an optional parameter.ExampleYou can try to run the following code to work with jQuery.filter(),Live Demo $(document).ready(function(){ $("p").filter(".myclass").css("background-color", "gray"); }); Tutorialspoint Free Text Tutorials Free Video Tutorials Connecting Tutors

784 Views
To change the first and last elements of a list use the eq() method.ExampleYou can try to run the following code to change first and last elements of a list using jQuery:Live Demo $(document).ready(function(){ $("#list li:eq(2)").after($("#list li:eq(0)")); }); This year's ranking: India US UK Last year's ranking: India US UK

1K+ Views
To access element with nth index from an HTML page, use the jQuery eq() method. It is used to access the index of an element in jQuery. The eq() method refers the position of the element.ExampleYou can try to run the following code to access element with nth index in jQuery. Here, element with 2nd index is considered:Live Demo $(document).ready(function(){ $('ul li').eq(2).css({'background-color':'#E6B16A'});}); India US UK Australia

880 Views
To access the index of an element in jQuery, use the eq() method. The eq() method refers the position of the element.ExampleYou can try to run the following code to learn how to access index of an element in jQuery,Live Demo $(document).ready(function(){ $('ul li').eq(2).css({'background-color':'#E6B16A'});}); India US UK Australia

273 Views
To fetch the nth div from an HTML page, use the jQuery eq() method. It is used to access the index of an element in jQuery. The eq() method refers the position of the element.ExampleYou can try to run the following code to learn how to fetch nth div from an HTML page using jQuery. Here, we will fetch the 2nd div:Live Demo $(document).ready(function(){ $("#button1").click(function(){ alert($("div:eq(1)").text()); }); }); Paragraph One Paragraph Two - 2nd div selected Paragraph Three Which div?

947 Views
Here’s how you can get objects by ID Selector (#id), by Class Selector (.class), by Tag, and Attribute (.attr()).Get Object by Class SelectorExampleThe element class selector selects all the elements which match with the given class of the elements.Live Demo jQuery Selector $(document).ready(function() { $(".big").css("background-color", "yellow"); }); This is first ... Read More