JSFiddle - React, Tailwind, and code Playground
HTML
<a class="ajax" href="/organizations/1/media/galleries/15">Silly Gangs</a>
JavaScript
var Value=$("a.ajax").attr("href").split("/").pop();
alert(Value);
<a class="ajax" href="/organizations/1/media/galleries/15">Silly Gangs</a>
var Value=$("a.ajax").attr("href").split("/").pop();
alert(Value);