You do have these divs someplace right?
This works:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>html demo</title>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<div id="textbox1"></div>
<div id="textbox2"></div>
<script>
$(document).ready(function()
{
var buttons = '<div><button>Test</button></div>';
$("div#textbox1").before(buttons);
$("div#textbox2").before(buttons); // only works here, at the last instance.
});
</script>
</body>
</html>
JS Fiddle:
http://jsfiddle.net/M2D8p/