1. Start with a simple instance without a method with Parameters
Copy codeThe Code is as follows: // create an anonymous Function
(Function ($ ){
// Add a new method to jQuery (for details, see note 1)
$. Fn. extend ({
// Plug-in name
MyFirstName:
The code in the jQuery pop-up box encapsulates DialogHelper and jquerydialoghelper.
After reading the jQueryUI Dialog example, the result is pretty good. It's a bit awkward to use. The code written is a bit unscrewed and needs to be encapsulated! So
General Introduction
The next few blogs are a simple application of the previous knowledge to deepen understanding
Single-line text Box
Describes only one simple style: getting and losing focus changing styles
Basic structure:
First, from a simple example, do not need a method with parameters to startCreate an anonymous function
The code is as follows
Copy Code
(function ($) {Attach a new method to jquery (see note 1 for details)$.fn.extend
Early want to learn jquery plug-in writing, has been dragged to now, while no work busy, search some data learning, wrote a relatively simple tab effect.
At first there was a very popular example: theAlert dialog box .
Jquery.alertMsg.js
/*
First, from a simple example, do not need a method with parameters to start
Copy Code code as follows:
Create an anonymous function
(function ($) {
Attach a new method to jquery (see note 1 for details)
$.fn.extend ({
Name of
The current project to the user experience of the endless, this article through the calendar of the project and the predecessor of the blog record Summary. Multiple AJAX requests for various solutions: Sync, queue, cancel request, offer demo at the
cascading Effects of a checkbox
Copy Code code as follows:
The sport you love?
Select all/Do not select
Football
Basketball
Badminton
Pong ball
$ (' #CheckedAll '). Click (function () {
$ ('
The example in this article describes the Jquery.form.js implementation method of submitting form submission to Ajax. Share to everyone for your reference. The specific analysis is as follows:
This framework sets form to submit, verify, and upload
Look at the example of jQueryUI dialog, the effect is good, is to use up a bit awkward, write code a bit twisted bar, need to be packaged again! So there is the following simple Dialoghelper helper class, because this article shares the focus is the
1: Effect Chart2: Material3: Coding3.1 ThinkingWhat do you need to do?1: Paging control needs to send the request to the background, send parameters including the current page, the number of each page display, query conditions; and get the data
There has been no time to see prototype, now well, has been updated to the 1.5 Pre1, oh, powerful features have to learn ah, this is to improve their JS ability of another shortcut.
1. What is prototype?
Maybe you haven't used it yet, Prototype.js
Custom Event: trigger (type, [data]): type (String, Event, Object): An Event Object or Event type to be triggered; data (Array): (optional) additional parameters passed to the event handler; [javascript] $ (& quot; p & quot ;). click (function (e...
Jquery. form. js cannot solve the connection timeout (timeout) problem. connecttimeout times out.
Recently, when using jquery. form. js to submit a form containing files, we encountered a problem: when the network speed is slow and we set timeout,
Original: HTML5 Achieve Scratch Award effectTo achieve this, the most important thing is to find a way: When you scratch the upper layer of the coating, you can see the results below. HTML5 's Canvas API has a property globalcompositeoperation,
Recently, I have been engaged in mobile games and various animations. In addition, if you are not satisfied with the previous animation class, you may want to write a new one. Then, read various blogs and check the materials. I also learned
As required by the project, ASP will be called by the front-end and mobile client in the future. NET Webservice to obtain information. so during this time, I started to look at Webservice and tried to call Webservice through XmlHttpRequest. I
JQUERY Common Methods DaquanAttribute:$ ("P"). addclass (style types defined in CSS); Add a style to an element$ ("img"). attr ({src: "test.jpg", alt: "Test Image"}); To add an attribute/value to an element, the parameter is a map$ ("img"). attr
Combined Use of Ajax and select tags, ajaxselect tags
Bytes -------------------------------------------------------------------------------------------------------
The following table lists the select form and submits the form data using Ajax:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.