I have a list of items on the webpage and to the right I have Edit buttons.
echo '<a href="#myModal?id='.$row['id'].'" data-toggle="modal" >';
How do I properly pass parameter trough <a>
tag to the bootstrap modal? My code above doesn't work with ?id='.row['id']'
part. I'm getting the Error: Syntax error, unrecognized expression: #myModal?id=12. But <a href="#myModal data-toggle="modal">Edit</a>
opens bootstrap modal.
Thank you