July 2008
2 posts
3 tags
Swapping input field placeholder text with jQuery
Here is a quick and easy way to handle swapping placeholder text in an input field with jQuery. This is typically used when you have a text box where the design does not allow enough room for a label element to describe the purpose of the field. In this case, like a global search box, the input field is pre-populated with a descriptive text such as “Search”. When the user clicks the...
2 tags
Preventing TextMate from creating ._ files on...
If you use TextMate with files stored on a network drive, you may notice a bunch of hidden files start to creep up. These files begin with “._” and the name of the file. So if you’re working on info.php, there will be a ._info.php file in the same directory. These files are used for extended attributes. From the TextMate manual:
“TextMate makes use of extended attributes...