coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

textarea placeholder support #19

Closed Toverbal closed 9 years ago

Toverbal commented 12 years ago

It seems that the placeholder attribute is not supported for textarea 'elements'. Changing one line in the localizElement function fixes the 'issue', since you can use .val(value) on a textarea too:

    localizeElement = function(elem, key, value) {
      if (elem.is('input') || elem.is('textarea')) {
      }
    ...
    }