Axel Richter: Jquery / uppercase bei JS

Beitrag lesen

Hallo,

ich habe ein Problem:
mit dem Jquery-Plugin Form Plugin lese ich in meiner php-datei ein
Eingabefeld aus.

var search = $('input[@name=suchbegriff]').fieldValue();

searchnew = search.toUpperCase();
  alert(searchnew);


>   
> Und da hängts...  
>   
> Wo ist das der fehler?  
  
[Form Plugin API](http://malsup.com/jquery/form/#api) ->  
fieldValue  
Returns the value(s) of the element(s) in the matched set in an array. As of version .91, this method always returns an array. If no valid value can be determined the array will be empty, otherwise it will contain one or more values.  
Chainable: No, this method returns an array.  
  
Dein search ist also kein String, sondern ein Array. Ein Array hat keine Methode toUpperCase().  
  
viele Grüße  
  
Axel