单项选择题

获取页面中所有jpg格式的图片,以下写法正确的是()。

A.$("img[src$=jpg]")
B.$("img[src^=jpg]")
C.$("img[src=jpg]")
D.$("img[src*=jpg]")