---
title: "Discussion on \"Card region item's selection\" | Hashnode"
description: "Discussion on \"Card region item's selection\". This blog post explains how to add card selection to the Oracle APEX card region.\n#orclapex"
url: "https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Card region item's selection](https://lmoreaux.hashnode.dev/card-region-items-selection?utm_source=hashnode&utm_medium=feed)

This blog post explains how to add card selection to the Oracle APEX card region. #orclapex

Aug 16, 2022 · 2 min read · lmoreaux.hashnode.dev  
Updated Aug 30, 2022  
Read the article

-   [#orclapex](https://hashnode.com/tag/orclapex)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#css](https://hashnode.com/tag/css)
-   [#oracle](https://hashnode.com/tag/oracle)

## Written by

[Louis Moreaux](https://hashnode.com/@lmoreaux)

@lmoreaux · Paris

  
[View profile](https://hashnode.com/@lmoreaux)

Oracle APEX developer

Oracle APEX Developer (Insum) from Paris Contributor of Flows for APEX Passionate about APEX and web development.

## Responses 6

Markdown supported · ⌘↵ to post

[A Freeman](https://hashnode.com/@afreeman)

[Oct 25, 2024](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/671c2a367967ec14cc54c999)

I just came across this - thank you, very cool solution.

I would like to store the IDs of the cards selected in an APEX collection. How to do this in JavaScript? I managed to get the id's in a page item and can do it from there, but I would prefer to do it directly.

[A Freeman](https://hashnode.com/@afreeman)

[Oct 26, 2024](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/671c2a367967ec14cc54c999#reply-671c411663682fa2193d5a6a)

I am looking into using a JS array instead, and then converting that to a string to use in PLSQL.

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Nov 4, 2024](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/671c2a367967ec14cc54c999#reply-6728e415f5aad1469cb3664d)

Thanks [A Freeman](https://hashnode.com/@afreeman) for the comment! You could user the apex.server.process funciton ([docs.oracle.com/en/database/oracle/apex/24.1/aexj…](https://docs.oracle.com/en/database/oracle/apex/24.1/aexjs/apex.server.html)) along with an AJAX process type on the page to store the selection on a collection

[Mohsin murtaza](https://hashnode.com/@Mohsin1433)

[Jun 7, 2023](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/64802cf3837566372d406c7b)

i have addeded the same code but card is not selected

[Mohsin murtaza](https://hashnode.com/@Mohsin1433)

[Jun 7, 2023](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/64802cf3837566372d406c7b#reply-64806cd1837566372d407805)

i can message you on linkedin becuse of free acount [Louis Moreaux](https://hashnode.com/@lmoreaux)

[Mohsin murtaza](https://hashnode.com/@Mohsin1433)

[Jun 7, 2023](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/64802cf3837566372d406c7b#reply-64806ce67fef2032a244353c)

Can't **\***[Mohsin murtaza](https://hashnode.com/@Mohsin1433)

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Jun 7, 2023](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/64802cf3837566372d406c7b#reply-64807287837566372d40790a)

You can email me at moreaux.louis@gmail.com

[Marcel Hoinkis](https://hashnode.com/@MarcelHoinkis)

[Aug 30, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/630e01fe43d7308e3e32a8e7)

Hi, I really enjoyed your article. While rebuilding it I noticed that you used "//" for the inline comment in your CSS. I was struggling a bit before I noticed that that's not the syntax for CSS comments. "//)" Maybe you could correct that.

Thanks for the great article!

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Aug 30, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/630e01fe43d7308e3e32a8e7#reply-630e04cd43d7308e3e32a9b2)

Hi Marcel, thank you for taking the time to write this comment. Code snippet updated with the correct syntax for the comments.

[Ronald Hollak](https://hashnode.com/@rhollak)

[Aug 17, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fc7aa90cfd6de8c7d7694d)

Hi, Great article. Tip: considder using jquery's .toggleClass to add/remove selected Class.

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Aug 17, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fc7aa90cfd6de8c7d7694d#reply-62fc80081ebeafdc3d32bc31)

Thanks for sharing, `toogleClass` will do the job in a cleaner way. But in a real application, you would want to store the id to process it, so you will have to check if the class is present or not anyway.

[Nicolas Pilot](https://hashnode.com/@NPilot)

[Aug 16, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fbc4081ebeafdc3d32a459)

Very cool Louis. Thanks for this. Would be very useful on some projects.

But in case we already have a "media action" on the card (for example to zoom-in on the image), another option would be to define a "button action" with an icon fa-square-o / fa-check-square-o...

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1660666795933/DkTZbq-pLS.png)

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Aug 16, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fbc4081ebeafdc3d32a459#reply-62fbfcb71ebeafdc3d32add5)

Yes, this is another great solution! Thanks for sharing it!

[Mohsin murtaza](https://hashnode.com/@Mohsin1433)

[Jun 7, 2023](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fbc4081ebeafdc3d32a459#reply-648067b6837566372d407726)

how did you do that ??

[Jon Dixon](https://hashnode.com/@orclapex)

[Aug 16, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fb8bad4900bfdc62762e9c)

Nice solution, elegant and effective.

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Aug 16, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fb8bad4900bfdc62762e9c#reply-62fb8c121ebeafdc3d329808)

Thanks, I appreciate the feedback!
