ArnisR Posted August 19, 2010 Report Share Posted August 19, 2010 (edited) Kā no šī linka GET mainīgo "id" ienest jQuery mainīgajā: index.php?action=delete&id=1 Edited August 19, 2010 by ArnisR Quote Link to comment Share on other sites More sharing options...
0 rATRIJS Posted August 19, 2010 Report Share Posted August 19, 2010 http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=jquery+parse+query+string Un nav taads jQuery mainiigais - ir javascript mainiigie. Quote Link to comment Share on other sites More sharing options...
0 codez Posted August 19, 2010 Report Share Posted August 19, 2010 getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } } Quote Link to comment Share on other sites More sharing options...
0 Grey_Wolf Posted August 19, 2010 Report Share Posted August 19, 2010 ja tiek izmantots PHP tad var shaadi <script> var JS_mainigais='<?php echo $_GET['id'];?>'; </script> Quote Link to comment Share on other sites More sharing options...
0 Kavacky Posted August 19, 2010 Report Share Posted August 19, 2010 Tikai neaizmirstot par aizsardzību pret ļauno kodu. Quote Link to comment Share on other sites More sharing options...
Question
ArnisR
Kā no šī linka GET mainīgo "id" ienest jQuery mainīgajā:
index.php?action=delete&id=1
Edited by ArnisRLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.