Question: I need to get elements id and class when something is dropped on it. Id works fine, but class is not passed...

HTML

```
<div id="drag" class="two">drag</div>
<div id="drop" class="one">drop</div>

```

JS

```
$(document).ready(function(){
    $("#drag").draggable();
    $("#drop").droppable({
        drop: function(){
            alert(this.class+" "+this.id)
        }
    });

```

[jsfiddle](http://jsfiddle.net/skunksts/U5RjC/)

Answer: 
Posting my answer here because can be helpful to someone else...

```kotlin
import android.icu.text.MessageFormat
import java.util.Locale

fun Double.toWords(language: String, country: String): String {
    val formatter = MessageFormat(
        "{0,spellout,currency}", 
        Locale(language, country)
    )
    return formatter.format(arrayOf(this))
}

```

and you can use it like this:

```kotlin
import androidx.compose.ui.text.intl.Locale

// ...

(12345678.99).toWords(Locale.current.language, Locale.current.region)

// OR,

(12345678.99).toWords("en", "US") // For static local

```

This call will return the string

> 
> twelve million three hundred forty-five thousand six hundred seventy-eight point nine nine
> 
> 
> 

Reference: <https://developer.android.com/reference/android/icu/text/MessageFormat>
You have done all the work just display String returnz in a text field like this

```
 results.setText(returnz);

```