# How to select a lot of topics fast?

**URL:** <https://meta.discourse.org/t/how-to-select-a-lot-of-topics-fast/25790>\
**Category:** Product Support\
**Created:** [27 فبراير 2015، 8:10م UTC](https://meta.discourse.org/t/how-to-select-a-lot-of-topics-fast/25790 "2015-02-27T20:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![ossia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ossia/32/215651_2.png) [@ossia](https://meta.discourse.org/u/ossia)\
**Post date:** [11 نوفمبر 2016، 7:14ص UTC](https://meta.discourse.org/t/how-to-select-a-lot-of-topics-fast/25790/31 "2016-11-11T07:14:44Z")

</div>

This code was not working for me:

```plaintext
$('input[type="checkbox"]').attr('checked', 'checked')

```

It was checking the boxes, but the wrench button wouldn’t pop up (I don’t think Discourse was registering them as having been selected).

So instead, I simulated a click with:

```plaintext
$('input[type="checkbox"]').each(function() { this.click()})

```

and this worked as though I’d manually clicked the checkboxes myself. This seems to be the simplest way to do this for one-time migrations. I hope this proves helpful 🙂

---

_[View the full topic](https://meta.discourse.org/t/how-to-select-a-lot-of-topics-fast/25790)._
