$(‘.tag’).click(function(){ var this_id = $(this).attr(‘id’); $.ajax({ method: “get” , url: “ssi/ajax/tag.php” // this sets the $_SESSION variable to either state , data: “tag=”+this_id , success: function(text){ $(‘#’+this_id+’ span’).text(text); // this updates the visual for the user } }); });
Category: jQuery
jQuery
jQuery – Selectbox Validation
by admin •
I needed to validate two sets of selectboxes within a single form. Each pair represented a minimum and a maximum. Here is the complete script http://muffinstump.ca/selectbox_validation.php. The following is the jQuery set-up: