1

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="suman.sathyanandam@hp.com" status="Approved">

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

suman
  • 333
  • 1
  • 10
  • 24
  • The below post will help to solve your problem too. http://stackoverflow.com/questions/704679/parse-html-string-with-jquery – sundar Aug 07 '12 at 13:10
  • thanks sundar.. i have gone through it. it's not helping – suman Aug 07 '12 at 13:28

1 Answers1

1

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

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

CodeJockey
  • 154
  • 1
  • 6