Solved

Remove 'disabled' attribute

Posted on 2016-10-31
6
40 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 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 5

Author Comment

by:Isaac
ID: 41867492
0
 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Check for a change in value in a database row on jquery button click 6 33
JQuery JavaScripot loop though RadioButtonList 4 25
How to position loader with CSS 3 39
Jquery 10 20
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses how to create an extensible mechanism for linked drop downs.
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)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 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