Added val method

`input-expanding` is not triggered when setting the text with `val`.

This commit adds a `val` method ala `select2`.