Get the value of the chosen data-class and write to a label ?

Get the value of the chosen data-class and write to a label ?

hi guys
I have a group of 10 images which have the following data class below

How do i get the value of the selected data-class and write it to a label ?

thanks
Ehi

  1. $(".classify").click(function () {
  2. $('#filter').text('You have chosen a filter'+data("class").val); // #filter is the name of the label to be written
  3. // below is my image src
  4.      <img   id="Image1" class=classify data-class="blur" 
  5.              style="width:50px; height:50px;"  
  6.              title="Original"
  7.              alt="thumb image">


  8. e.g the code above should write 
  9. You have chosen a filter blur