Response title
This is preview!
<button type="submit" class="searchButton" value"">
$('button').each(function() { ... });registers a callback for EVERY button on your page. This is probably not what you want!Add some class to those buttons that you DO want this code to affect.
class='special blogArchivebutton'notid='blogArchiveButton'---
$('.blogArchiveButton').click(function() {not$('#blogArchiveButton').click(function() {
An ID is supposed to be UNIQUE. If you duplicate an ID in your page, then when you select the ID, jQuery will select only the FIRST one. HTML with duplicate IDs is INVALID HTML.
There must be a way to make this all short rather than naming them individually as 1,2,3,4,5. Too much code that way.
class='special blogArchivebutton'notid='blogArchiveButton'---
$('.blogArchiveButton').click(function() {not$('#blogArchiveButton').click(function() {
I don't have an ID. My only ID is #monthly.
© 2013 jQuery Foundation
Sponsored by and others.