JSFiddle

  • hide and show list on button click #2 is the latest revision

    http://stackoverflow.com/a/11695299/922168

    $(document).ready(function() {
        $('#right-column-sidebar > ol > li').click(function(e) {
            $(this).nextAll().hide();
        });
        $('a.button').click(function(e) {
            $('#right-column-sidebar > ol > li ...
  • show tooltip next to marker #42 is the latest revision

    http://stackoverflow.com/a/11692807/922168

    var map;
    
    function initialize() {
    
        var myOptions = {
            zoom: 15,
            panControl: false,
            zoomControl: true,
            zoomControlOptions: {
                style: google.maps.ZoomControlStyle.SMALL
            },
            mapTypeControl: false ...
  • hide submit until form is valid #61 is the latest revision

    http://stackoverflow.com/a/11691451/922168

    $(document).ready(function() {
        $('#emailbutton').hide();
        $('input').change(function(e) {
            if ($('#fname').val() && $('#lname').val() && $('#email').val() && validateEmail($('#email').val())) {
                $('#emailbutton').show();
            }
        });
    });
    
    var validateEmail = function(email) {
        var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s ...
  • 1
  • 2