can you please help me with this ? i have some packages and for each package there is a price the package name in column name the package price is in column price i need to when client clicked on contact us, redirected to me via WhatsApp with message in it the package name and the package price like this : https://api.whatsapp.com/send?phone=123456789&text= Hello, i want to ask about the package (val.name) with its price (val.price) i have this problem :
<div class="col hidden" id="sub-container0">
<div class="card">
<div class="card-body">
<h5 class="card-title sup-header">Special title treatment</h5>
<div class="card-text sup-price-pr"></div>
<div class="card-text sup-number-pr"></div>
<div class="card-text sup-months"></div>
<div class="card-text sup-total"></div>
<a class="choose_package btn btn-primary mt-2" title="" target="_blank" id="real_link_wa" href="https://api.whatsapp.com/send?phone=123456789&text="><?php echo $this->lang->line("contact us"); ?> <i class="fab fa-whatsapp fa-lg"></i></a>
</div>
</div>
</div>
and in java :
$('#sub-container'+key+' > div.card > div > div.card-text.sup-total').html("<?php echo $this->lang->line("total price"); ?>: "+parseInt(val.price))
$('#sub-container'+key+' > div.card > div > div.card-text.sup-price-pr').html("<?php echo $this->lang->line("price client"); ?> : "+parseInt(parseInt(val.price_client) ))
$('#sub-container'+key+' > div.card > div > div.card-text.sup-number-pr').html("<?php echo $this->lang->line("number of clients"); ?> : "+val.premium_users)
$('#sub-container'+key+' > div.card > div > div.card-text.sup-months').html("<?php echo $this->lang->line("monthes"); ?>: "+val.months)
$('#sub-container'+key+' > div.card > div > a').attr('title', val.name + '\xa0\xa0 ' + val.price)
$('#sub-container'+key+' > div.card > div > a ').attr ('href','https://api.whatsapp.com/send?phone=123456789&text= val.name + val.price')
so the result that i got is like this : https://api.whatsapp.com/send?phone=123456789&text= val.name%20+%20val.price instead of something like this : https://api.whatsapp.com/send?phone=123456789&text= beginner package 90$
i already searched but not find anything