by Mikael Henriksson
22. July 2010 20:33
I wanted to clear some textboxes when it gets focus so that the user does not have to clear the textbox before they enter whatever text. I came up with the following pretty quickly. $('input[type=text]').focus(function () {
$(this).val('');
});
This worked like a charm!
I clicked ...
[More]
0f9391a0-2742-4e5b-a473-5d4ec1990e10|0|.0
Tags: jQuery
jQuery
by mikael
4. February 2009 01:09
The reason I want to do this is because I like to make everything very “visible” to the user. Readability is very important and the UI tends to get cluttered as it is. For now I am very happy with my little hack. It’s extremely late and “real” work is getting the better of me but I’ll post what I h...
[More]
4f0be5e3-6d9b-465d-aec0-776fc80bacb8|0|.0
Tags: jQuery
jQuery
by mikael
1. February 2009 22:42
First of all I must start with saying, javascript and jQuery is very different from anything I have ever used before and I have been searching high and low for a simple way to simply toggle the visibility of a div. The reason for this is that I want to ‘popup’ a insertion div when the user requests ...
[More]
283ccf54-a628-4188-8f45-7b1e1362134b|1|4.0
Tags: jQuery
jQuery