Can I stop .NET eating IDs?

前端 未结 10 1486
我寻月下人不归
我寻月下人不归 2020-12-16 11:35

I\'m an Information Architect and JavaScript developer by trade nowadays, but recently I\'ve been getting back into back-end coding again. And, whilst trying to get an HTML

10条回答
  •  春和景丽
    2020-12-16 11:55

    If you're using jQuery then you have loads of CSS selectors and jQuery custome selectors at your disposal to target elements on your page. So rather than picking out a submit button by it's id, you could do something like:

    $('fieldset > input[type="submit"]').click(function() {...});
    

提交回复
热议问题