Archive for the ‘jQuery’ Category

IE doesn’t recognise “select option”.click()

on Friday 14th November, 2008 Gabe speculated thusly…

Instead of:
$(’#ranges option’).click(function() {
var val = $(this).val();
//do something with val
});

Had to change it to:
$(’#ranges’).change(function() {
var val = $(this).val();
//do something with val
});

Posted in Development, JavaScript, Programming, jQuery

No Comments »

Using jQuery to make a login form more sleek

on Wednesday 5th March, 2008 Gabe speculated thusly…

The following code is well commented, please read the comments for a thorough understanding.

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){

// The following js code will take the standard login form and hide it's
// labels. It will then change the password input type to text
// (so that normal letters are
// displayed in it), set the value of the email input to 'email. Set the
// value of the password input to 'password. These values server as the
// new labels.
(more…)

Posted in JavaScript, Programming, jQuery

No Comments »