I need to set a flag on a jqGrid container to select by

I use jqGrid and need to write my own validation routines, since the jqGrid validation is far to slow for our needs. So when I check for duplicates, I need to be able to set a flag for those which are duplicates.  Then it's each to create a jQuery selector to draw those which are duplicates with a red frame.

Can I set a flag on an element I did not create?

Thanks.
newbiewebSr. Software EngineerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
HainKurtConnect With a Mentor Sr. System AnalystCommented:
use any property, say myFlag

$("#anyElement").attr("myFlag",1")
0
 
HainKurtSr. System AnalystCommented:
Can I set a flag on an element I did not create?

what does this mean?
0
 
newbiewebSr. Software EngineerAuthor Commented:
jqGrid has created elements which contain data populated with AJAX from an MVC3 Controller Action. I need to find an available property I can use for my own purposes.

If I find one with FireBug, how can I be sure it's not used by the jQuery library?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
newbiewebSr. Software EngineerAuthor Commented:
Right. I forgot. I can add my own attribute. Thanks
0
 
newbiewebSr. Software EngineerAuthor Commented:
What's the jQuery to find all elements where I set the following?


$("#anyElement").attr("myFlag",1")
0
 
newbiewebSr. Software EngineerAuthor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.