suman
suman

Reputation: 343

How to fetch a value from outerHTML using jquery?

i have an requierement where i need to fetch value from outerHTML using jquery. below is my js function

enter image description here

where event.outerHTML will contain

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

How to fetch the value of "status". some one please help

Upvotes: 1

Views: 1135

Answers (1)

CodeJockey
CodeJockey

Reputation: 154

I had a similar problem with a project I was working on. This is what I suggest:

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

Upvotes: 1

Related Questions