<Script src = "jquery-1.9.1.js"> </script> <script type = "text/javascript"> $ (function () {$ ('# btnCreateP '). click (function () {var createP = '<p> <B> <I> the Yellow River enters the ocean <br/> thousands of miles away <br/> upgrade to the next floor </I> </B> </p> '; $ ('div '). append (createP) ;}) $ ('# btnCreateA '). click (function () {var createA = '<a href = "http://www.baidu.com" alt = "I'm going to Baidu" title = "go to Baidu"> Baidu </a> '; $ ('div '). append (createA) ;}) $ ('# btnCreateSelect '). click (function () {var createSelect = '<select multiple = "multiple"> <option value = "1"> operator </option> <option value = "2"> Bing </option> <option value = "3"> odd </option> </select> '$ ('div '). append (createSelect) ;}) $ ('# btnalternode '). click (function () {alert ($ ('select option: selected '). text ());})}) </script>