How to pass multiple variables in modal popup in phpForm submit with AJAX passing form data to PHP without page refreshhow to pass multiple data- id in a modal bodyHow can I prevent SQL injection in PHP?How do you use a variable in a regular expression?How do you check if a variable is an array in JavaScript?How can I select an element with multiple classes in jQuery?How do I get PHP errors to display?How to determine if variable is 'undefined' or 'null'?How do you parse and process HTML/XML in PHP?How do I pass command line arguments to a Node.js program?How does PHP 'foreach' actually work?How to pass variables and data from PHP to JavaScript?
Do I have to roll to maintain concentration if a target other than me who is affected by my concentration spell takes damage?
Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?
Did Chinese school textbook maps (c. 1951) "depict China as stretching even into the central Asian republics"?
How can I check type T is among parameter pack Ts... in C++?
Why is the divergence of this series apparently not predicted by the Monotonic Sequence Theorem?
Why is Madam Hooch not a professor?
What speedlites can work with the Canon EOS 4000D's non-standard hotshoe?
Difference between 'demás' and 'otros'?
Do we or do we not observe (measure) superpositions all the time?
How do I find and plot the intersection of these three surfaces?
What are good ways to spray paint a QR code on a footpath?
Why do I have to press the shutter button twice on my Canon 6d Mark II?
Wilcoxon signed rank test – critical value for n>50
Reverse of diffraction
How was film developed in the late 1920s?
Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?
How well known and how commonly used was Huffman coding in 1979?
Spicket or spigot?
MH370 blackbox - is it still possible to retrieve data from it?
Are there any vegetarian astronauts?
The use of "I" and "we" used in the same sentence and other questions
Is there a short way to check uniqueness of values without using 'if' and multiple 'and's?
How hard is it to sell a home which is currently mortgaged?
What does 行けそうなら mean?
How to pass multiple variables in modal popup in php
Form submit with AJAX passing form data to PHP without page refreshhow to pass multiple data- id in a modal bodyHow can I prevent SQL injection in PHP?How do you use a variable in a regular expression?How do you check if a variable is an array in JavaScript?How can I select an element with multiple classes in jQuery?How do I get PHP errors to display?How to determine if variable is 'undefined' or 'null'?How do you parse and process HTML/XML in PHP?How do I pass command line arguments to a Node.js program?How does PHP 'foreach' actually work?How to pass variables and data from PHP to JavaScript?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I know this is an answered question HERE and I have tried the same solution, however I am not sure how to pass the values to modal popup which is on same page.
I have form where user inputs amount and clicks Pay
button and user gets a popup getting a confirmation with the values and currency he/she is using.
I wnat to open popup after clicking a button , hence my code:
<form name="form" class="form-horizontal" action="signupinvestment.php" method="post" onsubmit="return validateForm()">
<button type="submit" class="btn btn-primary"><i class="fa fa-university"></i> Net Banking
<a class="open-my-modal" rel="dialog" data-toggle="modal" data-id="<? $amount_invest=$_GET['amount_invested']; echo $amount_invest;?>" data-prod-id="<? $currency=$_GET['currency'];echo $currency;?>" href="#mymodal" data-target="#myModal" >
<?php echo "<br> $order_id </br>";?>
</a></button>
</form>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<table class="table table-hover table-bordered" >
<tr style=" background-color:#00AAAD; color:#FFF; ">
<div class="modal-body">
<div id='order-id'></div>
<div id='prod-id'></div>
<div id='sell-id'></div>
</div>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
Close
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
And my JQuery Code:
$(document).ready(function ()
$('.open-my-modal').click(function()
$('#order-id').html($(this).data('id'));
$('#prod-id').html($(this).data('prod-id'));
// show Modal
$('#myModal').modal('show');
);
);
I am not sure this $_GET
is te right way to access those variables and secondly it doesn't open the popup skips to the next form.
I have rest of the codes, but its lengthy hence didnt pt its same as in the link above.
I know this looks very shabby but had to try before asking. Please help
javascript php
|
show 9 more comments
I know this is an answered question HERE and I have tried the same solution, however I am not sure how to pass the values to modal popup which is on same page.
I have form where user inputs amount and clicks Pay
button and user gets a popup getting a confirmation with the values and currency he/she is using.
I wnat to open popup after clicking a button , hence my code:
<form name="form" class="form-horizontal" action="signupinvestment.php" method="post" onsubmit="return validateForm()">
<button type="submit" class="btn btn-primary"><i class="fa fa-university"></i> Net Banking
<a class="open-my-modal" rel="dialog" data-toggle="modal" data-id="<? $amount_invest=$_GET['amount_invested']; echo $amount_invest;?>" data-prod-id="<? $currency=$_GET['currency'];echo $currency;?>" href="#mymodal" data-target="#myModal" >
<?php echo "<br> $order_id </br>";?>
</a></button>
</form>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<table class="table table-hover table-bordered" >
<tr style=" background-color:#00AAAD; color:#FFF; ">
<div class="modal-body">
<div id='order-id'></div>
<div id='prod-id'></div>
<div id='sell-id'></div>
</div>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
Close
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
And my JQuery Code:
$(document).ready(function ()
$('.open-my-modal').click(function()
$('#order-id').html($(this).data('id'));
$('#prod-id').html($(this).data('prod-id'));
// show Modal
$('#myModal').modal('show');
);
);
I am not sure this $_GET
is te right way to access those variables and secondly it doesn't open the popup skips to the next form.
I have rest of the codes, but its lengthy hence didnt pt its same as in the link above.
I know this looks very shabby but had to try before asking. Please help
javascript php
“but had to try before asking” - and what have you actually tried? The accepted answer to the question you are referring to talks about usingjQuer.data
- why am I seeing nothing of that in your “try” here? Provide a proper minimal reproducible example, please, and be specific about what your actual issue with it is.
– 04FS
Mar 25 at 12:07
You could continue adding the modal body
– Hasta Dhana
Mar 25 at 12:08
@04FS added the whole code
– mark
Mar 25 at 12:11
And now for the second part - “and be specific about what your actual issue with it is”
– 04FS
Mar 25 at 12:12
1
a
insidebutton
is invalid HTML btw. - they are both “interactive” elements, you can not nest them. You want a button that triggers something, so use a ´button`, and not links to begin with (and not a mishmash of the two either.)
– 04FS
Mar 25 at 12:22
|
show 9 more comments
I know this is an answered question HERE and I have tried the same solution, however I am not sure how to pass the values to modal popup which is on same page.
I have form where user inputs amount and clicks Pay
button and user gets a popup getting a confirmation with the values and currency he/she is using.
I wnat to open popup after clicking a button , hence my code:
<form name="form" class="form-horizontal" action="signupinvestment.php" method="post" onsubmit="return validateForm()">
<button type="submit" class="btn btn-primary"><i class="fa fa-university"></i> Net Banking
<a class="open-my-modal" rel="dialog" data-toggle="modal" data-id="<? $amount_invest=$_GET['amount_invested']; echo $amount_invest;?>" data-prod-id="<? $currency=$_GET['currency'];echo $currency;?>" href="#mymodal" data-target="#myModal" >
<?php echo "<br> $order_id </br>";?>
</a></button>
</form>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<table class="table table-hover table-bordered" >
<tr style=" background-color:#00AAAD; color:#FFF; ">
<div class="modal-body">
<div id='order-id'></div>
<div id='prod-id'></div>
<div id='sell-id'></div>
</div>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
Close
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
And my JQuery Code:
$(document).ready(function ()
$('.open-my-modal').click(function()
$('#order-id').html($(this).data('id'));
$('#prod-id').html($(this).data('prod-id'));
// show Modal
$('#myModal').modal('show');
);
);
I am not sure this $_GET
is te right way to access those variables and secondly it doesn't open the popup skips to the next form.
I have rest of the codes, but its lengthy hence didnt pt its same as in the link above.
I know this looks very shabby but had to try before asking. Please help
javascript php
I know this is an answered question HERE and I have tried the same solution, however I am not sure how to pass the values to modal popup which is on same page.
I have form where user inputs amount and clicks Pay
button and user gets a popup getting a confirmation with the values and currency he/she is using.
I wnat to open popup after clicking a button , hence my code:
<form name="form" class="form-horizontal" action="signupinvestment.php" method="post" onsubmit="return validateForm()">
<button type="submit" class="btn btn-primary"><i class="fa fa-university"></i> Net Banking
<a class="open-my-modal" rel="dialog" data-toggle="modal" data-id="<? $amount_invest=$_GET['amount_invested']; echo $amount_invest;?>" data-prod-id="<? $currency=$_GET['currency'];echo $currency;?>" href="#mymodal" data-target="#myModal" >
<?php echo "<br> $order_id </br>";?>
</a></button>
</form>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<table class="table table-hover table-bordered" >
<tr style=" background-color:#00AAAD; color:#FFF; ">
<div class="modal-body">
<div id='order-id'></div>
<div id='prod-id'></div>
<div id='sell-id'></div>
</div>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
Close
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
And my JQuery Code:
$(document).ready(function ()
$('.open-my-modal').click(function()
$('#order-id').html($(this).data('id'));
$('#prod-id').html($(this).data('prod-id'));
// show Modal
$('#myModal').modal('show');
);
);
I am not sure this $_GET
is te right way to access those variables and secondly it doesn't open the popup skips to the next form.
I have rest of the codes, but its lengthy hence didnt pt its same as in the link above.
I know this looks very shabby but had to try before asking. Please help
javascript php
javascript php
edited Mar 25 at 12:13
mark
asked Mar 25 at 12:04
markmark
1703 gold badges8 silver badges33 bronze badges
1703 gold badges8 silver badges33 bronze badges
“but had to try before asking” - and what have you actually tried? The accepted answer to the question you are referring to talks about usingjQuer.data
- why am I seeing nothing of that in your “try” here? Provide a proper minimal reproducible example, please, and be specific about what your actual issue with it is.
– 04FS
Mar 25 at 12:07
You could continue adding the modal body
– Hasta Dhana
Mar 25 at 12:08
@04FS added the whole code
– mark
Mar 25 at 12:11
And now for the second part - “and be specific about what your actual issue with it is”
– 04FS
Mar 25 at 12:12
1
a
insidebutton
is invalid HTML btw. - they are both “interactive” elements, you can not nest them. You want a button that triggers something, so use a ´button`, and not links to begin with (and not a mishmash of the two either.)
– 04FS
Mar 25 at 12:22
|
show 9 more comments
“but had to try before asking” - and what have you actually tried? The accepted answer to the question you are referring to talks about usingjQuer.data
- why am I seeing nothing of that in your “try” here? Provide a proper minimal reproducible example, please, and be specific about what your actual issue with it is.
– 04FS
Mar 25 at 12:07
You could continue adding the modal body
– Hasta Dhana
Mar 25 at 12:08
@04FS added the whole code
– mark
Mar 25 at 12:11
And now for the second part - “and be specific about what your actual issue with it is”
– 04FS
Mar 25 at 12:12
1
a
insidebutton
is invalid HTML btw. - they are both “interactive” elements, you can not nest them. You want a button that triggers something, so use a ´button`, and not links to begin with (and not a mishmash of the two either.)
– 04FS
Mar 25 at 12:22
“but had to try before asking” - and what have you actually tried? The accepted answer to the question you are referring to talks about using
jQuer.data
- why am I seeing nothing of that in your “try” here? Provide a proper minimal reproducible example, please, and be specific about what your actual issue with it is.– 04FS
Mar 25 at 12:07
“but had to try before asking” - and what have you actually tried? The accepted answer to the question you are referring to talks about using
jQuer.data
- why am I seeing nothing of that in your “try” here? Provide a proper minimal reproducible example, please, and be specific about what your actual issue with it is.– 04FS
Mar 25 at 12:07
You could continue adding the modal body
– Hasta Dhana
Mar 25 at 12:08
You could continue adding the modal body
– Hasta Dhana
Mar 25 at 12:08
@04FS added the whole code
– mark
Mar 25 at 12:11
@04FS added the whole code
– mark
Mar 25 at 12:11
And now for the second part - “and be specific about what your actual issue with it is”
– 04FS
Mar 25 at 12:12
And now for the second part - “and be specific about what your actual issue with it is”
– 04FS
Mar 25 at 12:12
1
1
a
inside button
is invalid HTML btw. - they are both “interactive” elements, you can not nest them. You want a button that triggers something, so use a ´button`, and not links to begin with (and not a mishmash of the two either.)– 04FS
Mar 25 at 12:22
a
inside button
is invalid HTML btw. - they are both “interactive” elements, you can not nest them. You want a button that triggers something, so use a ´button`, and not links to begin with (and not a mishmash of the two either.)– 04FS
Mar 25 at 12:22
|
show 9 more comments
2 Answers
2
active
oldest
votes
Your modal is not a separate page, so if you need to get some data from your server (run the php scripts), then you have to add an ajax call to your server and receive that data, that will be passed to your modal via the JavaScript
. The JavaScript passes the data to the modal, not the PHP. Because the Modal is not a separate page, and the modal is being opened by the JavaScript.
The only thing, that the JavaScript may lack some data, so you have to add an ajax call, to get that data from you server (php).
how to add that ajax?
– mark
Mar 25 at 12:19
You can use jQuery$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like$.post()
or$.get()
as well
– Sergej
Mar 25 at 12:28
add a comment |
if you send that number to your server and after server response, you need the value then the server must put this value into a hidden input and then you show modal and read that data from the hidden input.
but if you need show modal before sending to server button type of form must be button not submit because submit button send data to the server and does not trigger javascript function. in this case, you need to submit the form or sending data to API from your modal.
anyway, you can access to textbox value using jquery.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337405%2fhow-to-pass-multiple-variables-in-modal-popup-in-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your modal is not a separate page, so if you need to get some data from your server (run the php scripts), then you have to add an ajax call to your server and receive that data, that will be passed to your modal via the JavaScript
. The JavaScript passes the data to the modal, not the PHP. Because the Modal is not a separate page, and the modal is being opened by the JavaScript.
The only thing, that the JavaScript may lack some data, so you have to add an ajax call, to get that data from you server (php).
how to add that ajax?
– mark
Mar 25 at 12:19
You can use jQuery$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like$.post()
or$.get()
as well
– Sergej
Mar 25 at 12:28
add a comment |
Your modal is not a separate page, so if you need to get some data from your server (run the php scripts), then you have to add an ajax call to your server and receive that data, that will be passed to your modal via the JavaScript
. The JavaScript passes the data to the modal, not the PHP. Because the Modal is not a separate page, and the modal is being opened by the JavaScript.
The only thing, that the JavaScript may lack some data, so you have to add an ajax call, to get that data from you server (php).
how to add that ajax?
– mark
Mar 25 at 12:19
You can use jQuery$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like$.post()
or$.get()
as well
– Sergej
Mar 25 at 12:28
add a comment |
Your modal is not a separate page, so if you need to get some data from your server (run the php scripts), then you have to add an ajax call to your server and receive that data, that will be passed to your modal via the JavaScript
. The JavaScript passes the data to the modal, not the PHP. Because the Modal is not a separate page, and the modal is being opened by the JavaScript.
The only thing, that the JavaScript may lack some data, so you have to add an ajax call, to get that data from you server (php).
Your modal is not a separate page, so if you need to get some data from your server (run the php scripts), then you have to add an ajax call to your server and receive that data, that will be passed to your modal via the JavaScript
. The JavaScript passes the data to the modal, not the PHP. Because the Modal is not a separate page, and the modal is being opened by the JavaScript.
The only thing, that the JavaScript may lack some data, so you have to add an ajax call, to get that data from you server (php).
answered Mar 25 at 12:16
SergejSergej
1,0076 silver badges14 bronze badges
1,0076 silver badges14 bronze badges
how to add that ajax?
– mark
Mar 25 at 12:19
You can use jQuery$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like$.post()
or$.get()
as well
– Sergej
Mar 25 at 12:28
add a comment |
how to add that ajax?
– mark
Mar 25 at 12:19
You can use jQuery$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like$.post()
or$.get()
as well
– Sergej
Mar 25 at 12:28
how to add that ajax?
– mark
Mar 25 at 12:19
how to add that ajax?
– mark
Mar 25 at 12:19
You can use jQuery
$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like $.post()
or $.get()
as well– Sergej
Mar 25 at 12:28
You can use jQuery
$.ajax()
method. You can read the documentation on the jQuery homepage. There are shortcut methods like $.post()
or $.get()
as well– Sergej
Mar 25 at 12:28
add a comment |
if you send that number to your server and after server response, you need the value then the server must put this value into a hidden input and then you show modal and read that data from the hidden input.
but if you need show modal before sending to server button type of form must be button not submit because submit button send data to the server and does not trigger javascript function. in this case, you need to submit the form or sending data to API from your modal.
anyway, you can access to textbox value using jquery.
add a comment |
if you send that number to your server and after server response, you need the value then the server must put this value into a hidden input and then you show modal and read that data from the hidden input.
but if you need show modal before sending to server button type of form must be button not submit because submit button send data to the server and does not trigger javascript function. in this case, you need to submit the form or sending data to API from your modal.
anyway, you can access to textbox value using jquery.
add a comment |
if you send that number to your server and after server response, you need the value then the server must put this value into a hidden input and then you show modal and read that data from the hidden input.
but if you need show modal before sending to server button type of form must be button not submit because submit button send data to the server and does not trigger javascript function. in this case, you need to submit the form or sending data to API from your modal.
anyway, you can access to textbox value using jquery.
if you send that number to your server and after server response, you need the value then the server must put this value into a hidden input and then you show modal and read that data from the hidden input.
but if you need show modal before sending to server button type of form must be button not submit because submit button send data to the server and does not trigger javascript function. in this case, you need to submit the form or sending data to API from your modal.
anyway, you can access to textbox value using jquery.
answered Mar 25 at 12:40
Navid_pdp11Navid_pdp11
1,0471 gold badge16 silver badges35 bronze badges
1,0471 gold badge16 silver badges35 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337405%2fhow-to-pass-multiple-variables-in-modal-popup-in-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
“but had to try before asking” - and what have you actually tried? The accepted answer to the question you are referring to talks about using
jQuer.data
- why am I seeing nothing of that in your “try” here? Provide a proper minimal reproducible example, please, and be specific about what your actual issue with it is.– 04FS
Mar 25 at 12:07
You could continue adding the modal body
– Hasta Dhana
Mar 25 at 12:08
@04FS added the whole code
– mark
Mar 25 at 12:11
And now for the second part - “and be specific about what your actual issue with it is”
– 04FS
Mar 25 at 12:12
1
a
insidebutton
is invalid HTML btw. - they are both “interactive” elements, you can not nest them. You want a button that triggers something, so use a ´button`, and not links to begin with (and not a mishmash of the two either.)– 04FS
Mar 25 at 12:22