How to get div id value in php variable
Ngày đăng:
24/09/2022
Trả lời:
0
Lượt xem:
93
How can I get this
Here is the script
asked Jul 7, 2016 at 10:12
7 You want the value between the div tags, not the ID, correct? Change this:
To this:
If you want to display the value on the page do this: Create an empty div:
Place it anywhere you want on the page. Then change your jQuery:
answered Jul 7, 2016 at 10:22
awl19awl19 3664 silver badges10 bronze badges 5 This is how you get the id value on your package.php Page.
or you can just store the id in a new variable.
if you arent sure if there are any values being sent by your post you can use this.
answered Jul 7, 2016 at 10:51
1
How to get div id into php variable?
id: $(this).attr('id') id: $(this).text() }, function(response) { $('#saved-value').html(response); }); How to put div id into a variable for php?
|