Solved

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

Posted on 2011-09-26
6
256 Views
Last Modified: 2012-05-12
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
Comment
Question by:newbieweb
  • 4
  • 2
6 Comments
 
LVL 51

Expert Comment

by:HainKurt
Comment Utility
Can I set a flag on an element I did not create?

what does this mean?
0
 

Author Comment

by:newbieweb
Comment Utility
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
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
Comment Utility
use any property, say myFlag

$("#anyElement").attr("myFlag",1")
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Closing Comment

by:newbieweb
Comment Utility
Right. I forgot. I can add my own attribute. Thanks
0
 

Author Comment

by:newbieweb
Comment Utility
What's the jQuery to find all elements where I set the following?


$("#anyElement").attr("myFlag",1")
0
 

Author Comment

by:newbieweb
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now