2012-08-07 77 views
1

我有一個需求,我需要從使用jquery的outerHTML獲取值。下面是我的js函數如何使用jquery從outerHTML獲取值?

enter image description here

其中event.outerHTML將包含

<INPUT id=307 onclick=addremoveartifact(this,4); CHECKED type=checkbox flag="false" stkrvwrqrd="" arttype="Other" docId="" ppArtId="1516" appBy="[email protected]" status="Approved"> 

如何獲取的 「狀態」 的值。有人請幫忙

+0

下面的文章將有助於過於解決您的問題。 http://stackoverflow.com/questions/704679/parse-html-string-with-jquery – sundar 2012-08-07 13:10:49

+0

謝謝sundar ..我已經經歷了它。這沒有幫助 – suman 2012-08-07 13:28:45

回答

0

我有一個類似的問題,我正在做一個項目。 這是我的建議:

var status = $($(event)[0]).attr('status');