Profile
Achievement
smoothdzion's Recent SnippetsTagged jquery
- All /
« Prev 1 Next »
Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet. It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programm...
3
971
posted 14 years ago by smoothdzion
Great short snippet of code to toggle checkboxes.
Thanks [Josh Nathanson](http://groups.google.com/groups/profile?enc_user=aAOlJRcAAAC7dB8ku2NsRGdjbPtXhPEXHqZiDvCVswhrZ6TQxKj0ww) for putting this simple code together.
6
867
posted 14 years ago by smoothdzion
I needed to copy the value of one field to a couple of others in case users decided to forget to fill them out. Using jQuery and added it to a helper because I was using in multiple places. Created variables to make it more readable.
1
772
posted 14 years ago by smoothdzion
First value takes empty input values and adds 'Enter Value'.<br>
Second snippet removes 'Enter Value' when input is focused.<br>
Third snippet re-adds 'Enter Value' if the value is left blank.
2
982
posted 15 years ago by smoothdzion