Posts Tagged ‘jquery plugin’

jQuery: Get the Text of Element without Child Element

While writing code in jQuery, I often use .text() method to get the content of any element from DOM. This function is straight forward, it strips off all the html element from a selected element and returns the remaining text.So for below element the .text() method will return "A quick brown fox".<div id="foo"> A quick brown fox </div> <script> $("#foo").text(); ...

Textarea Resize JavaScript: Resize textarea using jQuery plugin

Textarea Resize JavaScript: Resize textarea using jQuery plugin
Have you ever used textarea in your UI design to get text from user? (Ofcourse you must) :) You must have specified rows and cols attribute to define the height and width of the textarea, or by using CSS. By whatever mean you create your textarea, the width and height of the textarea is fixed. What ...

Tutorial: Create Autocomplete feature with Java – JSP / jQuery

Tutorial: Create Autocomplete feature with Java - JSP / jQuery
Autocomplete is a common feature available in lot of web tools and services. You will find lots of implementation of autocomplete features. Let us see how can we implement a simple Autocomplete feature for Country names in Java-JSP and jQuery.Related: Spring MVC - AutoComplete tutorial with JSON & JQueryWe will use jQuery's autocomplete plugin for our example. Just go to JQuery Autocomplete ...

Create 3D tag cloud using jsTagCloud jQuery plugin

Create 3D tag cloud using jsTagCloud jQuery plugin
Tagging the content has increased the searchability of content in todays Web 2.0 world. Also similar content can be grouped together by assigning them same tags.Tag Cloud has became a good way of displaying the weighted tags in a manner easy to understand and search. You can find a lot of code written in all ...

How to:Set Maxlength of Textarea using jQuery/JavaScript

Maxlength of Textarea Update: The maxlength plugin is now managed at GitHub. Please contribute to make this plugin more awesome. GitHub: https://github.com/viralpatel/jquery.maxlengthSetting up maxlength of input text are easy. Just an attribute maxlength="##" does the work. But maxlength attribute does not work with textarea. I tried writing <textarea rows="5" cols="30" maxlength="120"></textarea> but this does not works.So what to do if we want to fix ...