HTML: 设置元素属性等于另一个元素属性

HTML: Set element attribute equal to another elements attribute

有没有办法设置此元素标题 <i title="" id='thei' class='fa fa-check-square-o'></i> 等于另一个元素 innerHTML?

例如<i title="(#tooltip).innerHTML" id='thei' class='fa fa-check-square-o'></i>

假设这是#tooltip:<p id="tooltip">Make this text a title of #thei</p>

尝试使用 .attr() ,将 #thei "title" 设置为 #tooltip .html()

$("#thei").attr("title", $("#tooltip").html())

$("#thei").attr("title", $("#tooltip").html())
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
</script>
<p id="tooltip">Make this text a title of #thei</p>
<i title="" id='thei' class='fa fa-check-square-o'>thei</i>