Tags » JQuery

Scroll to top of page using jQuery

A nice, quick, useful code snippet.

$('html, body').animate({ scrollTop: 0 }, 0);

For smooth scrolling:


1.$('html, body').animate({ scrollTop: 0 }, 'slow');

Peter

Code

[jQuery] Select a tag that contains a attribute with a value

If you want to select a tag object that contains ‘id=”intro”‘,

<p id="intro">
        Intro Message    
</p>

Use this javascript code!

$(document).ready(function(){
    $('p').animate({
    padding: '20px',
    fontSize: '30px'
    }, 2000);
});

Finally, code samples!

I guess I have put it off long enough. At some point I knew I would have to show other people my code, as embarrassingly naive and novice as it is. 547 more words

[jQuery] Comparison of getJSON and ajax

Comparison of jQuery getJSON and ajax.

I tried to debug this code in jQuery(the following), the object is to get the data from a json file and re-format the output data into an array, this array will be used in others functions later. 253 more words

Jquery

Building Themes from Scratch Using Underscores

The next stage of development of building my own theme in WordPress is back-end customization. This area covers Adding editor styles to match front-end styles. 26 more words

WordPress

Dynamically adding inputs with jQuery

Today I’ll be teaching you on how to add dynamic inputs using jQuery. ¬†This is perfect for when you’re building a web app or some kind of form and are unsure of how many inputs a certain form will need. ¬† 1,477 more words

Bootstrap

How to Create A Simple Web-based Chat Application

Click to Read

In this tutorial we will be creating a simple web-based chat application with PHP and jQuery. This sort of utility would be perfect for a live support system for your website.

Web Applications