If the question is tagged with [tag:jquery], OP probably accept jQuery answer. You can add extra non-jquery solution for completeness if you want. If OP don't want jQuery, the question shouldn't tagged with [tag:jquery].