If the id was something like news-top-1
, news-top-2
, news-top-3
, news-top-4
etc. then the selectors would have helped you.
http://api.jquery.com/attribute-starts-with-selector/
$.each( $("input[name^='news-top-']"), function () {
alert( $(this).hide() );
});