jQuery and Forms

1,516 views

Published on

Some simple examples for how to work with forms using jQuery.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,516
On SlideShare
0
From Embeds
0
Number of Embeds
211
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

jQuery and Forms

  1. 1. jQuery and Forms Tuesday, November 17, 2009
  2. 2. .val() Gets the input of the first matched element http://docs.jquery.com/Attributes/val http://teaching.johnnunemaker.com/capp-30550/examples/val-method/ Tuesday, November 17, 2009
  3. 3. .focus() Bind a function to the focus event of each matched element. The focus event is fired when an element receives focus from the mouse or by pressing tab. http://docs.jquery.com/Events/focus#fn http://teaching.johnnunemaker.com/capp-30550/examples/focus-a-field/ http://teaching.johnnunemaker.com/capp-30550/examples/focus-event/ Tuesday, November 17, 2009
  4. 4. .blur() Bind a function to the blur event of each matched element. The blur event fires when an element loses focus either via the mouse or by pressing tab. http://docs.jquery.com/Events/blur#fn http://teaching.johnnunemaker.com/capp-30550/examples/blur-event/ http://teaching.johnnunemaker.com/capp-30550/examples/blur-validation/ Tuesday, November 17, 2009
  5. 5. .change() Binds a function to the change event of each matched element. The change event fires when a control loses the input focus and its value has been modified since gaining focus. http://docs.jquery.com/Events/change#fn http://teaching.johnnunemaker.com/capp-30550/examples/change-event/ Tuesday, November 17, 2009
  6. 6. .submit() Bind an event to the submit event of each matched element. http://docs.jquery.com/Events/submit#fn http://teaching.johnnunemaker.com/capp-30550/examples/submit-event/ Tuesday, November 17, 2009
  7. 7. Assignment 12 http://teaching.johnnunemaker.com/capp-30550/sessions/jquery-forms/ Tuesday, November 17, 2009

×