Hide multiple element from a column html table : I have html table, where span id is like spanitem_1_1, spanitem_2_1, spanitem_3_1 . I have tried this also $('[id^="spanitem_"]').hide(); but it will hide all span , that is not required.