Use jQuery to get elements with prefix, fix #1461