Found a total of 10000 related content
jQuery toUpperCase/toLowerCase Example
Article Introduction:JavaScript code snippets used to convert text to uppercase and lowercase. This is a simple example to demonstrate changes to form input values. See: jQuery titleCaps function
jQuery('form').submit(function() {
jQuery('input#value').val(function(i, val) {
return val.toUpperCase();
return val.toLowerCase();
});
});
jQue
2025-03-11
comment 0
623
jQuery Auto Scroll To Top Of Page
Article Introduction:Use jQuery for Smooth, Automated Scrolling to the Top
This simple jQuery code snippet provides a smooth, automated scroll to the top of your webpage. Why use it? It saves users time scrolling on long pages and adds a visually appealing touch.
[Live
2025-03-11
comment 0
1200
jQuery Check if Function Exists Example
Article Introduction:Check if the jQuery function exists: Practical Tips and FAQs
This article provides jQuery code snippets to check whether a function exists in JavaScript code. This can be easily achieved by using the jQuery.isFunction() function, and it is very practical to check if the jQuery function exists before calling it!
function somenoobfunction() {
}
// Use jQuery
if ($.isFunction(window.somenoobfunction)) {
// Execution letter
2025-03-05
comment 0
911
3 Useful Online JavaScript/jQuery Code Tools
Article Introduction:Practical online tools to improve JavaScript and jQuery code efficiency
This article will share some practical online JavaScript and jQuery code tools to help you process your code more efficiently.
Online jQuery code compression tool
This tool is used to compress your JS code and can choose to include the latest version of jQuery.min file, thereby improving website loading speed. Compressed code means smaller file sizes, which in turn improves website loading speed.
Online jQuery code formatting tool
This tool converts compressed code back to a readable "pretty" format, and is also suitable for obfuscated/packaged code. More readable code means faster development speeds.
Online jQuer
2025-03-01
comment 0
386
Back to Top button with smooth scroll
Article Introduction:The "Back to Top" button on long pages is a simple yet useful navigation feature. This button allows users to quickly return to the top of the page without scrolling excessively. Check out the Codepen demo below: Full text: Back to top button CSS code snippet with smooth scrolling
2025-01-07
comment 0
1240
Scroll to Top Using jQuery (Setup time: 2mins)
Article Introduction:Quickly create a website back to top scrolling function (set time: 2 minutes)
This guide will guide you step by step how to set up the Back to Top feature on your website. Just scroll down this page to view the demo.
Download the scrollTo plugin and include it.
Get an image (arrow or similar).
Contains the following HTML code.
Contains the following jQuery/JavaScript code to capture window scrolling and process the display of images.
It's that simple!
HTML
jQuery
This jQuery code displays the image when the user scrolls down, hides the image when scrolling up, and processes click events.
$(document).ready(funct
2025-02-24
comment 0
885
Easy Guide to Install and Use Firebug
Article Introduction:This guide explains how to use Firebug and FireQuery to debug jQuery code within a webpage, alongside HTML and CSS. We'll cover installation, using FireQuery for live code injection, and a practical example.
What is Firebug?
Firebug is a Firefox ex
2025-03-06
comment 0
581
10 Color Picker Plugins
Article Introduction:Ten awesome jQuery color selector plugins, allowing your website users to easily choose the color they want! Most plugins come with tutorials and are very simple to set up. Enjoy it! :) Featured Recommendations – Chromoselector
Demo Document Download
jQuery color selector
Source code
Simple color selector
jPicker
Source code
Color selector
Source code
ASP.NET Color Selector
Source code
Drupal color selector
Source code
Simple color selector
Source code
Farbtastic color selector
Source code
Super simple color selector
Source code
Izzy color selection
2025-03-06
comment 0
593
10 Awesome jQuery ToolTips
Article Introduction:10 cool jQuery Tooltip plug-ins recommended
We've collected 10 cool jQuery Tooltip plugins you might have never seen before. These plugins provide some simple and effective tooltip options that are easy to implement on your website. Let’s enjoy it together! Related articles: - 10 jQuery Tooltip plugins and tutorials
Pop!
Use Pop!, a simple jQuery interference-free JavaScript plugin to easily create simple drop-down menus.
Source code
BetterTip
A jQuery library plugin that allows you to create custom tooltips.
EZPZ Tooltip
No
2025-03-01
comment 0
365
15 Premium jQuery Designing Tools
Article Introduction:jQuery4u.com: Featured jQuery plug-ins and design tools! The following are some practical, beautiful and efficient design tools. Some of them have been tested by me and are powerful. Come and try it!
jQuery "Extraordinary" navigation
Cleverly imitate the Dock and Stack effects of OS X.
View the demo source code
jQuery keyword highlighting
Use this jQuery plugin to highlight important keywords easily.
View the demo source code
IE text shadow effect
With this jQuery plugin, IE browser can also easily achieve text shadowing effects.
View the demo source code
Cool jQuery menu
use
2025-03-09
comment 0
679
PHP Master | 5 Inspiring (and Useful) PHP Snippets
Article Introduction:The Internet is full of various articles of "X PHP code snippets", so why do you need to write another article? The reason is simple: most of the code snippets in the article are lackluster. Generating a random string or returning $_SERVER["REMOTE_ADDR"] to get fragments like client IP addresses are really lacking in fun and practicality. This article will share five practical and interesting snippets of PHP code and introduce the inspiration behind them. Hopefully these creative code snippets will inspire you to write better and more creative code in your daily programming.
Key Points
This article introduces five practical PHP code snippets, including using the built-in fputcsv() function to generate CSV data and make
2025-02-26
comment 0
436
jQuery Reload an iFrame
Article Introduction:Simple jQuery code snippet to reload an iFrame by accessing the contentWindow property to obtain the location object. The jQuery snippet code actually loops through and refreshes all the iFrames on the page.
Also see:
Check if window is in an ifr
2025-03-03
comment 0
1014
Tips for Writing Clean JavaScript Code
Article Introduction:Write self-explanatory code: Ten practical tips to improve the quality of your JavaScript code
Writing clean and maintainable JavaScript code isn't just about following the rules, it's about writing code that tells a story. The following ten practical tips will instantly improve the quality of your code.
1. Use descriptive names and let the code tell the story
Your code should be as easy to understand as a well-written book. Name variables and functions clearly to make comments redundant.
2. Keep functions simple and focused
Every function should do only one thing. If you need to use the word "and" to describe what a function does, then it's probably doing too much.
3. Embrace modern JavaScript features
Use modern JavaScript
2025-01-16
comment 0
693
5 jQuery Text Rotate Arc Plugins
Article Introduction:Five jQuery text rotary curved plug-ins are recommended to help you improve text layout design!
Related articles:
10 jQuery text conversion plug-ins
5 jQuery text fill resize plugins
CircleType.js
A lightweight (4kb) jQuery plugin that allows you to easily set text into circular arrangements.
Source code and demonstration 2. ARCTEXT.JS
Use CSS3 and jQuery to achieve text curve effect.
Source code and demonstration 3. jQuery super simple text rotator produced by Pete R.
Add super easy spin text effects to your website with just a small amount or even without any tagging.
Source code and demonstration 4. ke
2025-02-22
comment 0
809
6 jQuery Cursor Functions
Article Introduction:Here are some powerful jQuery code snippets for manipulating the mouse cursor! They can be used to set and get text cursor position and selection range in the input and text area fields. Enjoy it!
// jQuery get cursor position function call example
$("input[name='username']").getCursorPosition();
jQuery.fn.getCursorPosition = function(){
if(this.length == 0) return -1;
return $(this).g
2025-03-10
comment 0
838
10 jQuery Tabs Tutorials
Article Introduction:10 great jQuery Tab tutorials and plugins to help you easily add tab effects to your blog or web page! Tabs are very practical for web designers and developers, and can present a lot of information professionally while maintaining a good user experience. My own blog also uses tabs to showcase courses, plugins, topics, scripts, and more. Tabs are growing in popularity, and many blogs use tabbed content to manage data without affecting layout. Related content: - 10 jQuery Tab plugins using Ajax and CSS - Ajax/jQuery.getJSON simple example
Create flexible tabbed content areas using CSS and jQuery
This is from tu
2025-03-07
comment 0
744
jQuery convert array to string
Article Introduction:Various ways to convert jQuery arrays into strings and FAQs
Here is a snippet of code that uses jQuery to convert an array to a string:
var blkstr = $.map(value, function(val, index) {
var str = index ":" val;
return str;
}).join(", ");
FAQs
1. How to convert jQuery array to string using .toString() method?
.toStrin
2025-02-28
comment 0
1063
An Introduction to the WP_Error Class
Article Introduction:WordPress's WP_Error class: elegant error handling mechanism
WordPress's WP_Error class provides a simple and powerful error handling mechanism for managing and modifying errors in applications. It is easy to integrate into your application, effectively handles errors returned by WordPress core functions, and creates custom error messages to improve the user experience. In addition, practical functions such as is_wp_error can check whether the variable or function return value is a WP_Error instance, thereby debugging problems efficiently.
No matter how skillful and meticulous your code is written, errors cannot be avoided in any development process. As WordPress
2025-02-17
comment 0
412