March 17, 20197 yr 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: Edited March 17, 20197 yr by Labelarot45
March 18, 20197 yr 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?
March 18, 20197 yr 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