Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299138

Pass attributes like rel when using Drupal AJAX links using class "use-ajax"

$
0
0

I dunno whether this is possible but i cound not find any documentation anywhere. I want to have an ajaxified link using class "use-ajax" but also want to post attributes in that anchor tag like rel.

So for this link
<a href="test" class="use-ajax" id="ajax" op="save" rel="23">test<a>

i want to post "op" and "rel" as well so that i can use them n my ajax callback function.

Thanks in advance!!


Viewing all articles
Browse latest Browse all 299138

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>