need to get a GET variable then send it thru ajax jquery
how can you get a GET variable with javascript? i get it in php from the query string: $idmessage = $_GET['id'];
th开发者_运维技巧en need to send it in $.ajax() jquery, how can i do this? regards
GET variables do not exist on clientside. You need to parse document.location.href
. You can make a shortcut with this, I believe, if you're using jQuery as you say.
精彩评论