TOPIC:

onblur script for textbox 7 years 4 weeks ago #126228

  • Topic Author
  • dlonra22
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Thanks: 0
hi everyone. I need to create an onblur event for one of my fields on my form. I basically need to copy the contents of field1 into field2 as soon as field1 has lost focus. Below is roughly how I would do it in html and jscript. How can I do it in CB. please note im not adept at CB or javascript. Your help would be much appreciated.

<input type="text" id="field1" onblur="myFunction()">
<input type="text" id="field2">

<script>
function myFunction() {
var x = document.getElementById("field1");
var y = document.getElementById("field2");
y.value = x.value;
}
</script>

Dlonra

Please Log in or Create an account to join the conversation.

onblur script for textbox 7 years 3 weeks ago #126403

  • chrisal's Avatar
  • chrisal
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 6983
  • Karma: 187
  • Thanks: 630
Hello again,


i think we solved this issue in the other Thread.


Let me know if i'm wrong.


regards
Chris

Please Log in or Create an account to join the conversation.

onblur script for textbox 6 years 7 months ago #139937

  • Topic Author
  • dlonra22
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Thanks: 0
This was solved @ crosstec.org/en/forums/15-usage/68738-po...html?start=48#126302 . Forgot to close this.

Please Log in or Create an account to join the conversation.

onblur script for textbox 6 years 7 months ago #139947

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1077
:laugh:

come back when you have any other kind of question.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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 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!