Solved

Remove 'disabled' attribute

Posted on 2016-10-31
6
27 Views
Last Modified: 2016-10-31
I have a dynamically created list that is generated using JSOM.
I would like to remove disabled from items that begin with 'faRow'.

See jsfiddle below.  My method is not working.
https://jsfiddle.net/isogunro/3taygs35/

Thanks for your help.
0
Comment
Question by:Isaac
  • 3
  • 3
6 Comments
 
LVL 42

Expert Comment

by:Chris Stanyon
ID: 41867400
Your code works fine - you just haven't included the jQuery library in your fiddle.
0
 
LVL 42

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 41867406
If you're adding this to your own page you'll need to add the jQuery library. Best-practice is to use a CDN. Add this to the <head> of your document:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

Open in new window

0
 
LVL 5

Author Comment

by:Isaac
ID: 41867486
It works fine in jsfiddle but not in my actual code in my SharePoint site  where I do reference the jquery file.  I will still give you the points though b/c it did solve that problem.

I will post my whole code in another post.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 5

Author Comment

by:Isaac
ID: 41867492
0
 
LVL 42

Expert Comment

by:Chris Stanyon
ID: 41867493
I'm not familiar with Sharepoint, but you would need to add the <script> tags I posted earlier to the <head> element of your document. This will include the jQuery library.

Once you've got the jQuery library included, then you code should work. You mention that you're dynamically creating the list, so your code would need to run AFTER you've injected that list into your document.
0
 
LVL 5

Author Comment

by:Isaac
ID: 41867498
I did.
What I posted earlier is in the other post is in "priorityModule.js"

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">

<script src="/Webpart/JavaScript%20Library/js/jquery.js"></script>

<link rel="stylesheet" type="text/css" href="/Webpart/JavaScript%20Library/css/jquery.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="/Webpart/NRM/projectModule.css">
<script type="text/javascript" src="/Webpart/JavaScript%20Library/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/Webpart/JavaScript%20Library/js/jquery.SPServices-2014.02.js"></script>
<script type="text/javascript" src="/Webpart/NRM/priorityModule.js"></script>

<div id="divListItems"></div>

Open in new window

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
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…

759 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

21 Experts available now in Live!

Get 1:1 Help Now