Use the code sample provided to resolve jQuery issue