If the question is tagged with 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 jquery.
Bryan Chen
- 46.5k
- 1
- 20
- 17