I have 4 dropdown and I want to hide them when page loads and then whenever add button is clicked then one dropdown should appear

Multi tool use![Creative The name of the picture]()

Clash Royale CLAN TAG#URR8PPP
I have 4 dropdown and I want to hide them when page loads and then whenever add button is clicked then one dropdown should appear
`
<p class="hide_editor" id="show_editor1">
<label for="subject_primary">Co-Editor 1:</label>
<select name='F_co_author1' id="co_author1" onchange="LoadExperts();">
<option value=''>No Coauthor 1</option>
</select>
</p>
<p class="hide_editor" id="show_editor2">
<label for="subject_primary">Co-Editor 2:</label>
<select name='F_co_author2' id="co_author2" onchange="LoadExperts();">
<option value=''>No Coauthor 2</option>
</select>
</p>
<p class="hide_editor" id="show_editor3">
<label for="subject_primary">Co-Editor 3:</label>
<select name='F_co_author3' id="co_author3" onchange="LoadExperts();">
<option value=''>No Coauthor 3</option>
</select>
</p>
<p class="hide_editor" id="show_editor4">
<label for="subject_primary">Co-Editor 4:</label>
<select name='F_co_author4' id="co_author4" onchange="LoadExperts();">
<option value=''>No Coauthor 3</option>
</select>
</p>
<button id='show_add_button' type="button" class="btn btn-success" style="display: block;">Add Co-Editor</button>
<script type="text/javascript" language="javascript"> // for loading the co-editors
//hide co-editors
$(".hide_editor").hide();
//show co-editor
$("#show_add_button").on("click", function ()
//$('#show_editor1').show();
// $('#show_editor2').show();
);
</script>`
here are four dropdown which is hidden when page loads but now when i click on add button then it should show only first dropdown...again i click on add button then second drpdown sould appear
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
HJ3I6ta0c Pcj9GrDI
Popular posts from this blog
Clash Royale CLAN TAG #URR8PPP Firebase Auth - with Email and Password - Check user already registered I want to check when a user attempts to signup with createUserWithEmailAndPassword() in Firebase user Authentication method, this user is already registered with my app. createUserWithEmailAndPassword() 8 Answers 8 To detect whether a user with that email address already exists, you can detect when the call to createUserWithEmailAndPassword () fails with auth/email-already-in-use . I see that @Srinivasan just posted an answer for this. createUserWithEmailAndPassword () auth/email-already-in-use Alternatively, you can detect that an email address is already used by calling fetchSignInMethodsForEmail() (previous called fetchProvidersForEmail() ). fetchSignInMethodsForEmail() fetchProvidersForEmail() When the user trying to create an user with same email address, the task response will be "Response: The email address is already in use by another account." mFirebas...
Clash Royale CLAN TAG #URR8PPP Dynamically update html content plain JS So I have a script bound in my index.html, which literally has to fetch an array of jsons from an api, then dynamically update my page when get response. But as a result I'm getting an as the only update of my page. here is my script fetch(url) .then((resp) => resp.json()) .then((resp) => resp.results.forEach(item => fetch(item.url) .then((response)=> response.json()) .then((response) => pokeArr.push(response)) .catch(console.log) ) ).catch(console.log) const filler = () => if(!pokeArr) return 0 pokeArr.map((i,j)=> return `<tr>$i.name</tr>` ) const pokeindex = () => document.getElementById('a').appendChild(document.createElement(filler())) pokeindex() When I'm consoling it, I can see in the console all the responses I get, so I'm at least doing the fetching part right. What's parberakan ? What's pokeArr ? – T.J. Crowder Aug 8 at 12...
Clash Royale CLAN TAG #URR8PPP Store custom data using WC_Cart add_to_cart() method in Woocommerce 3 I am creating a membership site and totally created static pages for each Membership plans (have only 3 plans). However, I have added products for each plan and when I hit SELECT PLAN button I redirect to some custom form where I ask users range of info we are going to use to fulfil the plan (same as sneakertub.com). I have written code into the PHP page which will handle SUBMIT action of the form. This PHP file, infopage.php , will process POST data I sent via POST call and stores these all data into WC session. infopage.php $customer_name = $_POST["customer_name"]; $customer_email = $_POST["customer_email"]; $customer_sex = $_POST["customer_sex"]; $customer_age = $_POST["customer_age"]; $product_id = $_POST["product_id"]; global $wp_session; $data = array( 'customer_name' => $customer_name, 'customer_email' =...