My HTML Code is like this :
<tr>
...
<td><a href="#" onclick="window.open('{{ url('hotel/cancel-policy?NationCd='.$hotel_request['NationCd'].'&CityCd='.$hotel_request['CityCd'].'&CheckIn='.$hotel_request['CheckIn'].'&CheckOut='.$hotel_request['CheckOut'].'&Sgl='.$hotel_request['Sgl'].'&Dbl='.$hotel_request['Dbl']) }}', 'newwindow', 'width=300, height=250'); return false;">Cancel Policy</a></td>
...
</tr>
I want move html tag inside javascript
I try like this :
My Javascript Code is like :
...
elem.append('<tr>\
...
<td><a href="#" onclick="window.open('url('hotel/cancel-policy?NationCd='+NationCd+'&CityCd='+CityCd+'&CheckIn='+CheckIn+'&CheckOut='+CheckOut+'&Sgl='+Sgl+'&Dbl='+Dbl)', 'newwindow', 'width=300, height=250'); return false;">Cancel Policy</a></td>\
...
</tr>');
...
But, it's not working
How to move html tag inside javascript corectly?
Any solution to solve my problem?
Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire