0

I have been given a task to go through all the JSPs of the application and find the elements which dont have ids in them. For example -

 <input type="text" name="BANANA" value="banana"/>

Is there any validation tool that can help me find such elements?

  • I think you can try with unix (i.e. grep ) if your familiar with it. – Sas Dec 10 '15 at 21:23
  • Writing a script for such a task would be very tedious. My JPS contains entries like , , etc etc. – Pramit Sinha Dec 10 '15 at 21:32
  • Found it - I am going to use something like this - http://stackoverflow.com/questions/7758046/regex-for-finding-elements-without-a-certain-attribute-e-g-id – Pramit Sinha Dec 10 '15 at 22:33

1 Answers1

-1

With Jquery you might use $(":not([id])") , this returns every element(also hmtl,body etc..) but not elements with id attribute

gui88
  • 1
  • 1