Pass control value to external JS file using JavaScript in ASP.Net

Last Reply 6 months ago By dharmendr

Posted 6 months ago

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;


You are viewing reply posted by: dharmendr 6 months ago.