Welcome, Guest

TOPIC: Groß/Kleinschreibung-erster Buchstabe groß

Groß/Kleinschreibung-erster Buchstabe groß 1 month 1 week ago #187451


  • Posts:3
  • nkh2016's Avatar
  • nkh2016
  • Fresh Boarder
  • Offline
  • Karma: 0
Hallo...
Habe ein Aktionscript.... dies sollte im Textfeld nach Verlassen alles in Großbuchstaben anzeigen..

function ff_nachname_action(elem, action)
{
if (action=='change')
elem.value = elem.value.toUpperCase();
return elem;
} // ff_ElementName_action


funktioniert.....

für alles in Kleinbuchstaben funktioniert auch..... Lowercase....

capitalize (für erster Buchstabe groß) funktioniert irgendwie nicht.....

Im Forum hier ist ein Beispiel mit capitalize,.... funktioniert bei mir aber nicht...

Danke im voraus....
The administrator has disabled public write access.

Groß/Kleinschreibung-erster Buchstabe groß 1 month 1 week ago #187664


  • Posts:1530 Thank you received: 210
  • lovre's Avatar
  • lovre
  • Administrator
  • Offline
  • Karma: 44
Hello,

sorry to answer you in English. Could you please try this code:
function ff_name_action(elem, action)
{
elem.value =elem.value[0].toUpperCase() + elem.value.substring(1);
}

Please let us know if this works for you.
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.

Groß/Kleinschreibung-erster Buchstabe groß 1 month 1 week ago #187698


  • Posts:3
  • nkh2016's Avatar
  • nkh2016
  • Fresh Boarder
  • Offline
  • Karma: 0
Hi...
thank you... it works, but when

i fill the textbox with, for example "ghAnBnC" then is the result "GhAnBnC"...

for example "abcdefg" is no problem..... the result is "Abcdefg"....

Perhaps have you a solution for "ghAnBnC" ---> "Ghanbcn"

thanks and regards
The administrator has disabled public write access.

Groß/Kleinschreibung-erster Buchstabe groß 1 month 1 week ago #187734


  • Posts:1530 Thank you received: 210
  • lovre's Avatar
  • lovre
  • Administrator
  • Offline
  • Karma: 44
Hello,

This code should be fine for you then:
function ff_name_action(elem, action)
{
var rest = elem.value.substring(1);
elem.value =elem.value[0].toUpperCase() + rest.toLowerCase();
}
Please let us know how it works for you.
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
Last Edit: 1 month 1 week ago by lovre.
The administrator has disabled public write access.
The following user(s) said Thank You: nkh2016

Groß/Kleinschreibung-erster Buchstabe groß 1 month 6 days ago #187872


  • Posts:3
  • nkh2016's Avatar
  • nkh2016
  • Fresh Boarder
  • Offline
  • Karma: 0
Thank you - work fine...
The administrator has disabled public write access.

Groß/Kleinschreibung-erster Buchstabe groß 1 month 6 days ago #187906


  • Posts:1530 Thank you received: 210
  • lovre's Avatar
  • lovre
  • Administrator
  • Offline
  • Karma: 44
That's great.

Be sure to let us know if you have more questions for us.
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.
Moderators: ForumSupport, pedro81, tomeperica
Time to create page: 0.065 seconds

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

New extension AnalyticsAnywhere released!

Track website visitors no matter if ad blockers are enabled! Check it out!

Lifetime Subscription

Special Offer! Get lifetime access to all of our current and future products and 2 years of professional support -- 149 for only 70!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates   this means, by purchasing a Lifetime Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year or Lifetime Subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Pro Support Renewal Plans

If you just need professional support and no further access to downloads or simply want or need to renew professional support, you may choose between various support plans from here.