I need to create 10 buttons dynamically with Jquery and set the text on them to be 1 -10, and add the same click event to all of them.
Should I be using dom create e
See this on how to create elements using jQuery What is the most efficient way to create HTML elements using jQuery?
Also, once you have created the element, to attach events you'll need to use the Live() keyword.
$("#btn1").live("click", function(){ //Do work });