473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Greasemonkey script to remove text from form tags

spamgirl
I need a script that will remove the word "disabled" from form tags on a page. I can find ways to remove the entire tag, but that's not what I want. Any ideas? Thank you for your help!
Oct 22 '11 #1
5 2106
Dormilich
8,658 Expert Mod 8TB
you don’t need to remove it. since you’re in JS you can set the disabled property to false.
Oct 23 '11 #2
Thanks! I never thought of that... now to figure out how to do it :)
Oct 23 '11 #3
Dormilich
8,658 Expert Mod 8TB
as a general tip, don’t confuse HTML and JS with each other (i.e. JS has it’s own representation of the page stored so trying to change HTML attributes directly is usually more complicated and does not necessarily does what you expect)
Oct 23 '11 #4
The problem now is that there are hundreds of form fields which have been disabled, so there's no way to specify each one and disable it... and they're all disabled in the HTML code itself, not javascript. They literally have "disabled" written in the HTML text field tag. That's why I wanted to just remove that word, I was hoping that would enable them. The other problem is that they're in an iframe, which Greasemonkey apparently can't touch.

I guess I'm just out of luck. Thanks for everyone's help!
Oct 23 '11 #5
Dormilich
8,658 Expert Mod 8TB
and they're all disabled in the HTML code itself, not javascript.
that doesn’t mean you can’t enable them all in JS. the HTML source code is just the input for the browser to render the page, not more, not less.
Oct 24 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: jjliu | last post by:
Could someone tell me how to remove all html tags (and anything inside tags) by perl. Some people suggested me to use HTML::TagFilter but i could not find window version. Thanks very much for your...
4
by: James Geurts | last post by:
Hi all Can someone help me out with a regex to remove all html tags except for <p>,</p>,<br>,<br/> from a string Thank Jim
2
by: Axel Foley | last post by:
Hi Folks, i'm newbie at JS; but "learning by tweaking" is my middle name! Trying to set up a link partnership application on a client's site; got this script at "The Javascript Source", but it...
1
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
1
by: Wes Weems | last post by:
Hello, I currently have javascript and vbscript that needs to be spat out based on certain conditions in the codebehind. My vbscript code relies on the OnLoad event. However with the...
3
by: Baquanb | last post by:
I need to get some text between font tags but I only need the text in the last table. The code i'm using below will get text between all font tags anyone know how I can just get whats in TABLE3...
9
by: mistral | last post by:
Need help to remove list of days from date script. Need format "June 07, 2006" <SCRIPT LANGUAGE="JavaScript"> <!-- Begin // Get today's current date. var now = new Date();
7
by: Chuck Anderson | last post by:
I'm pretty much a JavaScript novice. I'm good at learning by example and changing those examples to suit my needs. That said .... ..... I have some select fields in a form I created for a...
3
by: gm04030276 | last post by:
Hey. I was trying to write a page yesterday where an admin can register a user. I wrote some javascript so that when the forename or surnames are off focus, a script is run to take the forename and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.