In Bridge, Is it Sometimes Good to Lead an Opponent's Suit on Defense?
Assuming the opponents were not overbidding, your lead was perfectly fine. (though with lead problems, you ought to give the complete auction, as that matters a lot).

Elaborating on my comment to thesun...'s answer:

Usually when dummy bids and rebids a suit and you have a weak stopper like JTxx, there is real danger of that suit being set up or losers from declarer's hand immediately going away (for instance AKQxxx opposite void and declarer throws away heart/club losers). 

Such auctions (where dummy shows a real suit) usually call for an attacking lead and a trump lead is quite bad in that respect. There is also the distinct possibility the dummy is void in trumps and you are giving declarer a finesse he could not take, if you lead a trump.

A diamond lead is similarly bad as you are just giving declarer the option to throw away his losers immediately.

So the only reasonable choices (IMO) on this hand are either a heart or a club and either is ok, as to beat the contract you would probably need tricks from both suits.

btw: Try not to make conclusions from just one hand. Even a 90% odds on play has to fail 10% of the time.