Solved

Remove 'disabled' attribute

Posted on 2016-10-31
6
64 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
[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
  • 3
  • 3
6 Comments
 
LVL 43

Expert Comment

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

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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 43

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Suggested Courses

627 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