Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Remove 'disabled' attribute

Posted on 2016-10-31
6
Medium Priority
?
71 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 44

Expert Comment

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

Accepted Solution

by:
Chris Stanyon earned 2000 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
Industry Leaders: 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!

 
LVL 44

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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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…

721 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