• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

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.
0
newbieweb
Asked:
newbieweb
  • 4
  • 2
1 Solution
 
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
 
HainKurtSr. System AnalystCommented:
use any property, say myFlag

$("#anyElement").attr("myFlag",1")
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now