Solved

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

Posted on 2011-09-26
6
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 53

Expert Comment

by:Huseyin KAHRAMAN
ID: 36664725
Can I set a flag on an element I did not create?

what does this mean?
0
 

Author Comment

by:newbieweb
ID: 36667117
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 53

Accepted Solution

by:
Huseyin KAHRAMAN earned 500 total points
ID: 36669209
use any property, say myFlag

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

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

Author Closing Comment

by:newbieweb
ID: 36670346
Right. I forgot. I can add my own attribute. Thanks
0
 

Author Comment

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


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

Author Comment

by:newbieweb
ID: 36680211
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Difference between Nuget Package and using Bower/Node.Js/Gulp 2 41
JSON help 8 43
close window in firefox 3 36
Angular - difference between these 2 codes 3 14
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

738 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