Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="pool_<id>"><input type="text" class="url"> <input type="text" class="user"> <input type="text" class="pass"> <button onclick="updatepool('<id>')"></div>
- function updatepool(id)
- {
- var $url = $("#pool_"+id+" .url");
- var $user = $("#pool_"+id+" .user");
- var $pass = $("#pool_"+id+" .pass");
- $.ajax({
- type: "POST",
- url: "/updatepool",
- data: $.param({"id":id, "url":$url.val(), "user":$user.val(), "pass":$pass.val()}),
- success: function( resp ) {
- alert("Great Success!");
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment