Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I need this button to paste text from one form on a page, to another form on the same page

Featured Replies

I am using a domain checker, which when it says "this domainname is available", shows a button that says "Claim this domainname"

Now this button, cause of settings in the backend links to a page that I do not need it to link to. Because all I want for the button, on click, to do is to paste the text data in the domain name checker, to a form box on the left side of the page.

So what javascript or jquery code do I need to use to make this happen?
It all needs to happen on the same page.

1. When domainname is available, button shows up saying "claim my domainname"

2. On click, it should "copy/paste?" or at least just put the current data from the domainchecker, into my chosen form box on the same page
3. The form box on the left side of the page, should have the text data after the click of the button.

The text box where the data from the domain checker should be pasted in, looks like this:

    <input type="text" class="input-text wfacp-form-control" name="domeinnaam" id="domeinnaam" placeholder="example.com" value="" style="/*! content: ddfsdf; */">

The button of the domainname checker that say "claim my domainname" looks like this in code:

<a id="buy" class="btn btn-success btn-xs pull-right order-btn" href="https://mywebsite.com/checkout/?domeinnaam=fsdfsdf.nl" target="_blank">Claim My Domainname</a>

disregard the href in the above link, as it does not need to redirect to there.

The search bar script looks like this:

<input type="text" class="form-control" autocomplete="off" id="Search" name="domain" placeholder="www.my-domain.com">

What script do I need to use to establish this?

I've attached an image of the situation:

 

Schermafbeelding 2019-03-17 om 15.07.12.png

Edited by Labelarot45

Is this some sort of domain checking application you have installed on your site?

If so you need to talk to the application developers.

If not, who did build the domain checker?

Here's an example https://codepen.io/jackpallot/pen/GeGPeO.

I have changed this to use a button instead of an anchor. If you need this to open a form in a new window then the script will need to be modified to add a param to the URL instead, then within the new window you will need to grab the value out of the URL and add it to the input. You won't be able to do this if it's a third-party service though.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.