JQuery Has Selector Example

jquery

JQuery has selector specifies the elements that matches the specified element which contain at least one element. It selects the element set with descendent selector that matches the selector or DOM element passed in the document. If any of its descendent elements matches the selector, the element will be stored in the result. It creates […]

JQuery Empty Selector Example

jquery

This tutorial highlights the benefits and usage of the empty selector in JQuery. JQuery empty selector selects all the elements that have no children. It represents the elements with no children which includes element nodes, text nodes etc. The comments or processing instructions which are not treated as child elements and they do not affect […]

JQuery Checked Selector

jquery

JQuery checked selector selects all the elements that are checked. It selects only checked items of checkbox type in the document. It matches every checked input elements in the document. The checked selector is only used for radio buttons or checkboxes. When compare to checkbox selector, user can change the state by clicking on the […]

WebApplicationInitializer in Spring MVC

spring-thumbnail

Spring 3.1 has introduced a new feature for configuring the deployment descriptor using the Java Config approach. We don’t need to write the web.xml file for initializing the web applications. Everything can be done through a Java class itself. The Java class has to implement the org.springframework.web.WebApplicationInitializer which will be loaded when web application starts. […]

Spring MVC : How To Return Custom 404 Error Pages

spring-thumbnail

This example provides the steps to write your own 404 Resource Not Found error page for your application. Here I am writing a custom exception for 404 error using the HttpStatus.NOT_FOUND. This will be annotated as the exception @ExceptionHandler in the controller. Whenever there is any error thrown on this type, it will be redirected […]

RequestContextHolder in Spring MVC

spring-thumbnail

RequestContextHolder is a spring API for setting the values to any of three scopes request, session or global session. Note that in some situations, we may not be able to get the actual request from the request, we can simply use RequestContextHolder to get the request attributes and set the values. We have to explicitly […]

Spring Batch 3.0.0.RC1 Released

spring-thumbnail

Spring Batch is batch processing framework maintained under the spring community. Advantage of using the spring batch is that it has all the advantages of using the spring applications features when integrated inside the spring framework. It is not a scheduler like Quartz, but it makes use of a scheduler and takes care of the […]

JQuery – How To Get Tag Name and Value Using JQuery Selector

jquery

Using JQuery selector it is possible to select all the elements with the given tag name. The tag name which we specify within parenthesis, the element selector selects those all elements which are specified with that tag name. JQuery Selector Syntax It has parameter called tagname which selects all the elements used by that selector. […]

JQuery prepend() and prependTo() Example

jquery

JQuery Prepend() Method JQuery prepend() method is used to insert content to the beginning of each element inside matching of HTML elements. It inserts specified content as the first child of each element in the jQuery collection. With prepend() method, the selector expression preceding the method is the container into which the content is inserted. […]

JQuery Checkbox Selector Example

jquery

JQuery checkbox selector selects all the elements that are of type checkbox. It selects only checked items of checkbox type in the document. It allows user to select one or more number of choices. It is used for instances where user wants to select multiple options such as in the instance of “check all that […]