Is it possible to put my jquery codes in a javascript file and paste the link on page instead of writing it on page?
like this code
<script type="text/javascript">
$(function () {
$("[id*=GetUSERCOMMENTS2] [id$=txtcommentpost98]").each(function () {
$(this).attr('style', 'display: none;');
});
$('[id*=GetUSERCOMMENTS2] [id*=btnIncomm2]').on("click", function () {
$("[id*=GetUSERCOMMENTS3] [id$=txtcommentpost98]").each(function () {
$(this).attr('style', 'display: block;');
});
return false;
});
});
</script>