how to remove 'name' attribute from server controls?

前端 未结 6 2113
别那么骄傲
别那么骄傲 2020-11-29 11:19

The following asp.net side code of control:


6条回答
  •  难免孤独
    2020-11-29 12:12

    I think better is to change name property to same like ID is..

    Just try bellow by using Jquery on document.ready(function(){})

    document.ready(function(){
      $.each($('div').children(), function() {
            $(this).attr("name",$(this).attr("id"));
      });
    });
    

提交回复
热议问题