LazyBotter 188 Posted September 27, 2013 Report Share Posted September 27, 2013 Hi, Does anyone know if it is possible to fill an input field with a value using JQuery, and having the value display in the debugger? This is what I tried, <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"/> <title></title> </head> <body> <button id="Fill" class="btn">Fill With Value</button> <br> <input type="text" variable="#Text_Box_Var" fillwith="value" id="textbox"/> </body> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script> $(document).ready(function(){ $("#Fill").click(function(){ $("#textbox").val("This IS My Value Not Showing In Debugger"); }); }); </script> </html> Cheers, Carl Quote Link to post Share on other sites
Aymen 385 Posted September 27, 2013 Report Share Posted September 27, 2013 the code should work fine !what was the issue ? Quote Link to post Share on other sites
LazyBotter 188 Posted September 27, 2013 Author Report Share Posted September 27, 2013 The value is not showing in the debugger. Quote Link to post Share on other sites
LazyBotter 188 Posted September 27, 2013 Author Report Share Posted September 27, 2013 This is the work around I have got, its not great... ui html panel("<!DOCTYPE html> <html> <head> <style> textarea \{height: 300px; width: 400px;\} </style> </head> <body> <input type=\"button\" id=\"insert-link\" value=\"Add Link\" /><br> <div id=\"link\"> <input type=\"text\" id=\"href\" placeholder=\"http://\"/> <button id=\"ok\" onclick=\"ubot.runScript(\'Refresh()\');\">ADD</button> </div> <br> <textarea id=\"textarea\" variable=\"#text\"></textarea> </body> <!-- Load jQuery --> <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js\"></script> <script src=\"http://code.jquery.com/ui/1.10.2/jquery-ui.js\"></script> <!-- Load jQuery.selection plugin--> <script src=\"http://lazybots.com/jquery/rangyinputs.min.js\"></script> <script> $(document).ready(function()\{ $(\"#link\").hide(); $(\'#insert-link\').click(function()\{ $(\"#link\").show(); \}); $(\'#ok\').click(function()\{ var link = $(\"#href\").val(); var selection = $(\"#textarea\").extractSelectedText(); $(\"#textarea\").replaceSelectedText(\'<a href=\"\'+link+\'\">\'+selection+\'</a>\'); $(\"#link\").hide(); \}); \}); </script> </html>", 700) define Refresh { plugin command("WindowsCommands.dll", "type keys", "Untitled Bot* - UBot Studio Developer Edition", "HwndWrapper[UBot Studio.exe;;ff3d8a20-a99b-4e5a-96ff-c2e6449b5089]", 688, 382, " ") } 1 Quote Link to post Share on other sites
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.