using the jquery snippet