How do you disable a textarea using jquery in SharePoint 2010

How do I write a script to disable a comment field called Space Available Comments?
I tried using the following scripts and none of theme work.  I am still able to delete or type in texts in the textarea.
$("textarea[title*='Space']").attr("disabled","disabled");
$("textarea[name*='ctl10']").prop("disabled","disabled");
$('textarea').attr('readonly','true');
$('textarea[id="long id number here']").attr("disabled","false");
Thank you very much.
Here is source:
<tr>
<td nowrap="true" valign="top" width="190px" class="ms-formlabel"><h3 class="ms-standardheader">
<nobr>Space Available Comments</nobr>
</h3></td>
<td valign="top" class="ms-formbody">
<!-- FieldName="Space Available Comments"
FieldInternalName="Space_x0020_Available_x0020_Comm"
FieldType="SPFieldNote"
-->
<span dir="none">
<span dir="ltr">
<textarea name="ctl00$m$g_f9da713c_cff1_48d5_9943_08f4ac2b35b9$ctl00$ctl05$ctl10$ctl00$ctl00$ctl04$ctl00$ctl00$TextField" rows="6" cols="20" id="ctl00_m_g_f9da713c_cff1_48d5_9943_08f4ac2b35b9_ctl00_ctl05_ctl10_ctl00_ctl00_ctl04_ctl00_ctl00_TextField" title="Space Available Comments" class="ms-long" dir="none">&lt;DIV class=ms-rtestate-field&gt;Space Available Comments field value.&lt;/DIV&gt;</textarea>
<input name="ctl00$m$g_f9da713c_cff1_48d5_9943_08f4ac2b35b9$ctl00$ctl05$ctl10$ctl00$ctl00$ctl04$ctl00$ctl00$TextField_spSave" type="HIDDEN" id="ctl00_m_g_f9da713c_cff1_48d5_9943_08f4ac2b35b9_ctl00_ctl05_ctl10_ctl00_ctl00_ctl04_ctl00_ctl00_TextField_spSave" />
</span>
</td>
</tr>

I tried both of your solutions above. It would not disabled.  Your solutions "should" work. But, I don't get it why it does not work. I even tried several other variations of scripts to target the textarea including the solution
below from Robin. See his answers below.
Do you think that it might have help you more to see the problem if I had provided the script below <input name...> between </span> and </td>? 
I don't want to confuse you. But, the ultimate purpose is when a user selected the Space Available? to a "YES" option, the Space Avaiable Comments textarea should be disabled. My script to disable the radio button is working. I just need to find
a solution how to disable the textarea and I running out of ideas. Please help if you can.
Here is the script:
<script type="text/javascript">// <![CDATA[
if (browseris.ie5up && (browseris.win32 || browseris.win64bit) && !IsAccessibilityFeatureEnabled()){RTE_ConvertTextAreaToRichEdit("ctl00_m_g_f9da713c_cff1_48d5_9943_08f4ac2b35b9_ctl00_ctl05_ctl10_ctl00_ctl00_ctl04_ctl00_ctl00_TextField", true, false, "", "1033", null, true, null, null, null,"Compatible", "\u002fpmb_eTracking_Tool",null,null,null,null);}else{document.write("&#160;<br /><span class=\"ms-formdescription\"><a href='javascript:HelpWindowKey(\"nsrichtext\")'>Click for help about adding basic HTML formatting.</a></span>&#160;<br />");};//]]>
</script></span>
Thank you very much for your immediate response.

Similar Messages

  • How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!

    Can someone please help me with this query:
    How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!
    I continue to have a pop saying that either the file in open somewhere in the serve- which it is not- and I cannot delete a particular pdf or edit it.
    It's incredibly frustrating and in the end I end up having four files with different names because it won't let me edit the original file!!!!

    Hi Amila1,
    Are the pdfs stored on a network location?
    If so is the Preview pane turned ON?
    Please check the doc: http://kb.globalscape.com/KnowledgebaseArticle10862.aspx
    Regards,
    Rave

  • How to create an Assets Library using C# in SharePoint 2010?

    currentWeb.Lists.Add(
    "List Name",
    "List Description",
    SPListTemplateType.AssetsLibrary);
    This code does not work for me in Visual Studio. The SPListTemplateType enumerator does not have an assets library item.
    How can I programmatically create an Assets Library?

    To create an assets library you must activate first the Site Collection's Publishing Feature in order to set the availabilty of the "Asset Library" template.
    If not, no template on system and of course, error on code "Object reference not set to an Object......"
    Use this code:
    using (SPSite oSite = new SPSite(myUrl))
    if (oSite != null)
    using (SPWeb oWeb = oSite.OpenWeb())
    if (oWeb != null)
    oWeb.AllowUnsafeUpdates = true;
    //activating web feature
    Guid guidCollectionPublishingfeature = new Guid("F6924D36-2FA8-4f0b-B16D-06B7250180FA");
    //activating site feature first
    if (oSite.Features[guidCollectionPublishingfeature] == null)
    oSite.Features.Add(guidCollectionPublishingfeature, true);
    if (site.Features[guidCollectionPublishingfeature] != null)
    SPListTemplateCollection templateCol = web.ListTemplates;
    foreach (SPListTemplate t in templateCol)
    if (t.Name == "Asset Library")
    SPListCollection coll = web.Lists;
    Guid guid = web.Lists.Add("listname", "listdescription", t);
    coll[guid].Update();
    oWeb.AllowUnsafeUpdates = false;

  • HT201365 how can you disable this feature?Don't want to have to use passcode everytime i need to use the devise.

    How can you disable the password feature? Don't want to have to use code every time I need to use the phone.

    goto settings->general->passcode lock->turn passcode off

  • How do you disable "Connect to iTunes to Enable Push Notification" Message when opeing an app? Thie message is compeleyely annoying and theres is no way to cancel it. You have to clcik on "OK" to use the app.

    How do you disable the "Connect to iTunes to Enable Push Notifications" prompt when opening apps on an iPad (OS7)? The message is completely annoying and there is no way to cancel it. You must click on "OK" to use the app. I have already disabled notifications on those apps in the Notification Center.

    The best way to do this is to leave all files unchanged, but render the file containing that horrendous bird noise unreadable to the system. Open a terminal window, and paste this command:
    sudo chmod 000 /System/Library/Frameworks/Social.framework/XPCServices/com.apple.twitter.xpc/C ontents/Resources/TwitterSent.caf
    That's it. Your Tweets should hereinafter be silent unless you change TwitterSent.caf's permissions again.

  • How do you disable "digital optical output" so the red light in headphone jack goes off and I can use the internal speakers?

    HI,
    I have a red light in my headphone jack and I see "correct responses" listed as "when digital output is enabled speakers are disabled." That's all well and good but doens't really help. HOW do you disable the "digital output," get the red light to turn off and be able to hear through the speakers? What's the SOLUTION to the problem. Sorry, just a bit frustrated. Any help is greatly appreciated.
    Best,
    dpeast12

    Allegedly this can occur if there is a contaminant in the headphone jack that makes the computer believe there is an optical connection there, so it shuts off the internal speakers.
    Try inserting and removing a headphone plug repeatedly. This ought to dislodge the junk, and seems to have fixed the problem for others. Hope it helps!

  • How can you disable the fm radio app on the 7th gen nano?

    How can you disable the FM radio app on a 7th gen NANO?

    Why would you want to? Unless the app is open, you won't be using the functionaloty or using extra power etc.

  • How do you disable the feature to 'keep iMessage conversations running between two devices'?

    I have 2 apple devices- an iPhone 4 and an iPad 2. When I set my iPad up and set iMessage up set it offered me the option to keep iMessage conversations running between the two devices, and i pressed yes. I now cannot stand this feature because every time I recieve an iMessage, I get two alerts, one on each device. How do you disable it?

    Hi DeltaNomad,
    Welcome to the Support Communities!
    You can disable the Substitutions feature completely, or add words you frequently use to the substitutions list.  See this information from the Pages User Guide:
    Replace text automatically - Pages Help for Mac
    http://help.apple.com/pages/mac/5.1/#/tanca15d8a79
    When Text Replacement is turned on for the document, a checkmark appears next to Text Replacement in the Substitutions menu. You can deselect Text Replacement to turn it off, but existing text won’t change unless you select the text, and then follow the steps above.
    Choose Edit > Substitutions > Show Substitutions (from the Edit menu at the top of your computer screen).
    In the Substitutions window, select the Text Replacement checkbox, then click Text Preferences.
    Click Text, click the plus sign, then type the text you want to replace (such as “teh”) in the Replace column.
    Type the word you want to replace it with (such as “the”) in the With column.
    Close the window when you’re done editing substitutions.
    Click a button to replace all occurrences of the replacement text in the document, or only in the selected text.
    Cheers,
    - Judy

  • How do you disable the "Touch to return to call" banner on the top of the screen?

    How do you disable the "Touch to return to call" banner on an iPhone 4s and it is factory unlocked?
    Thank you.

    If your trying to just simply have it not show while navigating the OS during a call, then there is no option to disable it. If it's a problem where it's continuing to show after you disconnect a call it could be a fault in code that fails to run the script to terminate the banner need upon disconnect. I would restore the phone using itunes as a first troubleshooting step. Another avenue might be an issue with the phone failing to recognize the end of call signal from the carrier. In which case I would have the SIM card changed. Easy thing to do at your local carrier store.

  • How do you disable promt "Click to run an ActiveX control on page"

    Hello,
    How do you disable the prompt :
    "Click to run an ActiveX control on this Page"
    I started getting this all of a sudden when looking at Quicktime VR Movies.
    I am using Internet Explorer 6.0

    Actually I found this:
    http://discussions.apple.com/thread.jspa?messageID=1916644&#1916644
    and I uninstalled my update and now everything is fine.

  • How do you disable pinch to close presentation in Keynote

    How do you disable pinch to close presentation in Keynote?
    I am using iPad 2's as kiosks at my work and we are using Keynote to display the content. Is there a way to disable pinch to close?

    Try a search for Keynote, Kiosk -  you may find some items there.
    My guess is that Apple has a few people around that know how to program their in-store iPads to defeat fumbling fingers. I doubt they are willing to share.
    To go one step further with the plexiglass cover idea though, if you have interactions needed from customers then consider making all interactions in the same location on the slide - say, the right hand margin, one on top and one bottom - that way you could put finger holes in the plexiglass cover where the touch points are and avoid potential pinches. You would have to rearrange your slide response areas to match, but it is one way (fairly cheap) to get going if you can't find anything in the apps store or on-line. Try it with a mockup piece of cardboard or plastic sheet and see if it might work for you.
    Good Luck.

  • HT1695 How do you disable an existing WiFi auto connect?

    I have an Apple iPhone 4.  Under Settings > General > Network > WiFi it states "Known networks will be joined automatically.  If no know networks are available, you will be asked before joining a new network." My question is, how do you disable the automatic connection to known networks?
    Thanks,
    Sue

    If you are near the Wifi network you want to disable, it will be listed in the listing of available networks, obviously.
    Tap the blue arrow on the right side of the wifi's name.  If the network offers auto join and auto login you can turn them off here.  Not all networks offer this. If you just want to keep your phone from automatically joining a specific network you have used in the past you can tap Forget this network and you will be disconnected from it.
    Or if you want to disable all wifi networks you have joined in the past you can reset your network settings.
    Settings => General => Reset => Reset Network Settings
    this will reset your cellular connection as well as your wifi connections.  You will have to enter any ID and Password information for the networks that require you to log in, such as your home wifi network (You do have your home network password protected right?) but you will have disabled your wifi connections.

  • How do you disable - hotsync manager window's fade out on close?

    For the newer version of Palm Desktop and Hotsync Manager, how do you make the hotsync manager window stop fading out when closed or "done".
    It stops me from being able to access ANYTHING until the fade is completed, and that is a complete waste of my time, also when I have much more important things going on (alarms/alerts) that can't be silenced during the fade.
    And ... how do you disable the splash screen startup for the Palm Desktop, and how do you get the palm desktop to conform to standard windows start practices, so that when you open the program it comes up on the screen at the same windowed size I closed it at?
    Thanks!!
    Post relates to: Centro (Sprint)

    Thank you ... however it was already set for "normal window".  I deleted the icon and recreated and that seemed to fix it though, not sure why.
    As for the splash ... its a waste of time ... the application loads faster than "they" would expect so all it does is extra advertizing for Access without having a purpose.  And again, its not just a second or so, its 3 to 5 seconds depending on what else I'm doing.. and if I'm reading an email while double clicking the icon to have it start on my second monitor.. the spash covers my email till the program's running.
    The worse delay is the fade.  You already admit that it can vary depending on a number of things.. well that programmer may have thought it were very cool on a quad core intel @ 3 GHz .... try it on a 1 G p3, with an older video card.  Or try it on an older laptop .... the delay is 6 to 10 seconds while it fades it self to the nethers, it certainly didn't "CLOSE" when I told it to.. it took its dear sweet time.
    The programmer probably thought "hey this is really cool mahn.. watch it fade away..."  by the third time of being into or out of the settings that re-triggers the closing fade, I was ready to kill that programmer.  Make him suffer for the stupidity of his vision.  Its one thing to make it "cool" and give people the option to live with that plain jane every day FASTER response... and quite the other to force people to relive your "cool" idea every f**king day, every time they go into settings, or need to see the log for what failed on backup.. etc.
    Ever go upto a windows XP pc when someone says it seems slow and *de-select* the "FADE" option for their menus??  (Display Properties -> Appearance -> Effects -> deselect "use the following transition") I have ... and its amazing how perception changes because the menus are there NOW, not taking their time to pull off some grandious entrance ... the first time it may have been cool.. but by the 500 th time you've been into your start menu a year into the game.. that slow fade crap is working on your every nerve.
    Poor impulse control would have had me killing the programmer that put that fade in there.. now I just want to put him in for an hour or two of waterboarding.
    It was bad programming to force some idiots idea of a "cool" view on people, and the programmer should be shot down for it.  It shouldn't be... and it wasn't there before, so some mornon actually went out of their way to put something in because the program just wasn't "cool" enough for them.. and then they decided to F the rest of us by making it so we couldn't DEselect that slice of programmers heaven.
    It may sound like I'm blowing things out of proportion... but really, it was fine the way it was, now they've gone and F'd it up.  Moves for the better get little publicity, you have to live with the knowledge no one is bitching, but when you screw something up ... you need to fix it and need to hear how badly your lack of vision made things for others.
    and.. if they wont' fix it.. its coming off the pc.. I'll go back to the old "uncool" version.
    Post relates to: Centro (Sprint)

  • How do you disable voice announcements on the Gusto 3 ?

    How do you disable Voice Announcements on the Gusto 3 >

        Thanks for reaching out to us, tobrien459! May I ask what readouts you are getting in order for me to make sure I provide you with the most accurate information?
    I'm thinking you are looking for this:
    From the Home screen, press the Left Soft Key
    Menu > Settings > Accessibility > Easy Set-up.
    2. Follow the screen prompts to choose settings for
    Full Readout, Menu Readout, Digit Dial Readout,
    Alert Readout, TXT Message Readout, Browser
    Readout, and Flip Open & Talk
    Let me know if this is what you need.
    TamaraH_VZW
    Follow us on Twitter @VZWSupport

  • How do you disable the automatic list detection in Pages 5?

    How can you disable or deselect the automatic list detection in Pages 5?  I want to stop the auto numbering.

    Menu > Pages > Preferences > General > Editing: uncheck Automatically detect lists
    Peter

Maybe you are looking for

  • Windows 7 64 bit installed as 32 bit?

    I installed iTunes on a Windows 7 64 bit system. I used the link to the 64 bit installer. However, when iTunes installed, it put the program in the x86 directory and in the Task Manager, it is shown as running in 32 bit mode. Also, I pinned the appli

  • Does R3 have a report or function module to process payments requests?

    HI All, I want R3 report or function module which will receive payment requests from vendor or customer and then procees it depending on the data. Does R3 have such a report or function module to process payments requests? Please help me. Thanks.

  • How to get commercial XMLBeans

    Hello Is it possible to buy XMLBeans (get commercial license)? Where to get more information? The reason is that the development license is not good enough sometimes. BR VA

  • Auto Refresh XML Iview

    Hi, I created an xml iview that pulls in Yahoo stock quotes for our company. The iview works fine. Where do I set a property that tells the iview to auto refresh? I have not been able to find that. Our environment is NW04 Stack 11. Thanks, Kris

  • Dimitri, Having issues with Anychart5 for APEX integration kit

    Hello Dimitri, I tried sending an email to [email protected]; however, I get an error so I hope to catch you here. I have installed APEX trial integration kit into another folder and modified the region to point to the correct path. The new charts sh