I have this small HTML document:
HT
HTML Test $(document).ready(function() { $("script").each(function() { if($(this).attr("type") == "code") { alert($(this).html()); } }); });