jQuery ate my values

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]

Tags:

jQuery

Alternative way of show / hide html element

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]

Tags:

jQuery

Using jQuery to toggle visibility of a div

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]

Tags:

jQuery

About the author

Life architect specialized in programming