Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/headers.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/ajax/jquery/text.html on line 1

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/headers.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/ajax/jquery/text.html on line 1
要素の中身をHTMLなしの文字列で返します。 要素が複数の場合結合して返します。
また、引数として文字列を与えた場合、中身をその文字列に更新します。
以下、サンプルソースです。

<html>
<head>
<title></title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.3");</script>
<script type="text/javascript">
$(document).ready(function(){
function execute_sample(selector){
    if( selector == undefined ){
        selector = '#sample';
    }
    var code = $(selector).html();
    eval(code);
}
</script>
</head>
<body>
    <input type="button" value="サンプル実行" 
    onclick="execute_sample('#sample_text')" /><br /><br />
    <span id="sample_text">alert( $("#sample").text() );</span><br /><br />
    <span id="sample">ここの文字列を表示します</span>
</body>
</html>
以下、実行例です。



alert( $("#sample").text() );

ここの文字列を表示します
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/footer.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/ajax/jquery/text.html on line 36

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/footer.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/ajax/jquery/text.html on line 36