Javascript Disable Option

Jul 23, 2005

I have a form, with two drop down boxes. I want to be able to disable
the second drop down box when a specific value is chosen on the first.
I can't seem to figure out how to do this.

Go easy on me, I'm a newbie for the most part, but here is my code...

View 4 Replies


ADVERTISEMENT

How To Disable Save Option In Pdf

Apr 2, 2009

I want to disable save and save as option in a pdf file. How can i do this using javascript?

View 3 Replies View Related

Disable Option In Dropdown Menu?

Oct 19, 2007

How can I disable an option in a drop-down menu? Specifically, I want
to disable the option "Bouncy Castles". I want to display it, I just
want the user to be able to select it. As well, how can I remove the
indentation?

View 1 Replies View Related

JQuery :: Want To Disable Menu Option

Jul 19, 2009

I am using table filter.[url]...

i want to disable the Menu option...how to do this.

View 2 Replies View Related

Disable Goto Back Page Option?

Sep 11, 2007

I want to disable all the option, which inlcude:

using right click and select back,

pressing the backspace button on keyborad

and the back option on above menu to be disabled.

and other ways of going back to previous page.

Is there a way to do that using JS.

View 7 Replies View Related

Disable Right Click And View Page Source Option?

Jun 17, 2011

I'll make this short and simple.

1. Disable right-click in my webpage,

2. Disable "View Page Source" option.

I've seen point no.1 implied in many websites, but haven't seen point no.2 anywhere.

View 4 Replies View Related

Disable 'Edit With Microsoft Word' Option In The File Menu Of IE?

Dec 7, 2009

Is there any way to disable 'Edit with microsoft word' option in the file menu of Internet explorer using javascript.

View 21 Replies View Related

JQuery :: Disable Multi-Column Sorting Option From Tablesorter Plugin

Sep 12, 2011

I'm using JQuery Tablesorter, and I would like to DISABLE Multi-column sorting option from tablesorter plugin.

View 2 Replies View Related

Remove (not Disable And Not Delete) An Option In A "select" List

Nov 29, 2010

Is there a way to remove (not disable and not delete) an option in a "select" list, and restore it later when needed?

I have a form with many huge lists ("select" with many "options") that depend on eachother. I am dynamically updating the form through server, and wish to update the list values by sending a mask string. This way I could remove and restore the options without the need to pass the whole list again.

I tried many ways but none work:
* option.diabled="disabled" is not good because it is still shown
* option.style.visibility='hidden' is not good because it is still taking a row
* option=null is not good because I will not be able to restore it

I need a method similar to the following one for remove/add fields in a form:

remove:
<field>.style.display='none';
restore:
<field>.style.display=block';

View 1 Replies View Related

Disable Javascript In IE6

Jul 20, 2005

I want to test/proof some <NOSCRIPT></NOSCRIPT> stuff in my page via PHP but can not figure how to disable JavaScript on my browser.

View 2 Replies View Related

Javascript Use <option> From <select> As Control

Jan 20, 2006

i tried to create a dropdown menu and use the option as a control to
change content inside another text area

the code is like this:

<select name="xxxx"><option onclick="changeunitprice(29.87)"
value="1744"/>

the function changeunitprice() is called when an option is selected

problem is it works well with firefox but not IE

any ideas? or is there anyway can make same effect in IE?

View 1 Replies View Related

Javascript Option/Select Box Validation?

May 29, 2002

Is it possible to check an option/select box to see if it still has data in it? I'd like to be able to stop a user from updating a file IF the field they are copying from still has content in it. I.e.

BOX 1 BOX 2
1 3
4
6
2
5

So the button will display an error message (e.g. you aint sent the entire lot over)

I've tried to attempt it but my mind cannot really handle anything more than (Check kettle for water, IF water equal or less than 1 cup full, then fill kettle with water, If kettle equal to or greater than 3 then STOP).

View 3 Replies View Related

Disable Javascript In Netscape 8?

Dec 20, 2005

Does anyone know how to disable javascript in the new Netscape 8 -- for
off line testing (like can be done readily with the current MSIE,
Firefox or Opera browsers) ?

When I try tools -> options -> site controls -> web features and check
or uncheck the 'enable javascript' box, nothing changes -- it stays
enabled.

I've searched FAQs, archives and google about the issue, with no luck.

The odd thing is I swear last summer I managed past the problem
intermittently by clearing the cache, restarting the program, rebooting
the system, or something like that . . . but then got busy with other
things and now I don't recall what I did -- or if I was dreaming.

If no-one else can disable javascript on NN8, then why worry? I don't
know -- to be thorough, I guess. Would a third party security program
'disable javascript' feature be a way to test NN8 under these
circumstances? Or maybe it's the case that the 'disable javascript'
controls in NN8 work only for online content (the reverse of the MSIE
controls). I'll check it out and report back.

View 1 Replies View Related

Disable Back Using Javascript

Mar 15, 2006

I want to know, is there any other methods other than history.forward(), to disable back operation in HTML using javascript.

View 1 Replies View Related

Ajax But Disable Javascript

Apr 12, 2006

If the browser disable the javascript, what happen to Ajax? can i slove
the problem by using server side script? any suggestion for this?

i currently do some dirty projects with perl/cgi, and I would like to
add more client side features which relate to ajax, and do some
validation on the client side with javascript. but it is possible that
the javascript may be disable with some browsers. what can i do if the
client's broweer disable the javascript.

View 8 Replies View Related

I Want To Disable A Table With Javascript

Jun 13, 2006

I want to disable a table with javascript. In this table i have 'n' record and each record has 3 buttons. If you click a button does an action. I want to disable the all table.

Is there any way to disable all this table without have to disable each
button of each record?

View 8 Replies View Related

Disable Images In Javascript

Jun 14, 2006

Is there anyway of disabling images in javascript, so that the alternative
text appears instead of the images? I'm trying to do a text-only version of my site.

View 8 Replies View Related

VML - Disable Selecting Using Javascript

Oct 10, 2006

Does anyone know how to disable selecting when drawing VML objects? I
have a sketchpad program, where I draw polylines when you do a mouse
drag. The problem is that when i drag the mouse, it is drawing the line
but also selecting the previous VML stuff, which is sort of annoying.
Is there a way to disable this in javascript?

View 1 Replies View Related

Disable JavaScript For Frame Only?

Jan 8, 2007

I'm working on a little frames based web market research tool (not for public consumption) which allows us select various supplier websites via a link in a header frame, to be loaded in a main frame, from which we may drag data to be dropped into a form in a third form_frame which then submits to our database. All in all, this works nicely until we come to one of the supplier sites which has implemented a frame-killer script.

Now, I know it would be bad form (probably illiegal even) to force a site into the frames of another site for public consumption but I don't think that is an issue here so I ask you all ... Is it possible to disable JavaScript (on the fly) for a given frame only?

View 2 Replies View Related

Disable Back For Javascript

May 11, 2004

I have a form in which I disable the backspace key from going back a page if typed.

It works in IE I can disable the backspace key from going back but not in mozilla. Does anyone know why this does not work in mozilla?

<body onkeydown="if (event.keyCode==8) {event.keyCode=0; return event.keyCode }">

View 20 Replies View Related

Disable Information Bar Completely Using JavaScript In IE?

Feb 7, 2011

I have a requirement like this

1) I have some code in JavaScript

2) When ever it runs automatically Yellow colored Pop-Up Information Bar ll appears

3) Now i want to completely disable that information bar

4) If i runs that Html file it should be automatically allows ActiveX control pop-up and load all events

View 1 Replies View Related

The Best Way To Disable Javascript Link Shown In Status Bar?

Feb 17, 2007

a traditional javascript usage such as

<a href="javascript:void(0)"

or

<a href="javascript:doSomething()"

will both show the javascript link on the browser status bar...of
course you can use onmouseover to set the status bar text...but you
need to do on all the link....a little over kill.

View 4 Replies View Related

ComboBox - New Option - Option With Popup Input To Add Option

Nov 19, 2010

I am searching a solution to change a ComboBox by popup I have found this script on the web. Is it also possible to select the newVendor just after adding? Is this script ok or are there better solutions?

<script type="text/javascript">
<!--
function message(value){
if(value=="newVendor"){// New Vendor is selected
var vendor = prompt("Vandor's Name","");
var elementSelect = document.getElementById('vendor');
try{
[Code]....

View 2 Replies View Related

Using Javascript To Disable The Remember Username And Password Window

Oct 11, 2006

Most of the browsers has a feature that prompts the user to save the username or password when filling a form.

I just want to disable this feature. Can i disable this feature using Javascript?

Because there are some users that will not read on the message or information on the pop window that prompts them to save the username and password. I know it can be disabled manually through the browser's preferences.

Is it possible to disable it using javascript?

View 2 Replies View Related

JQuery :: Removing An Option From A Select Based On The Option Value?

Jun 21, 2010

I'm using the following code to remove an option from a select control based on a selection in a different select control and the option text in the select option that is being removed. The code works as I want it to, but I would prefer to use the option value for identifying the option to remove instead of using the option text. I've tried several different ways to do this, but can not find the proper syntax.

[Code]...

View 3 Replies View Related

Creating Option List From Chosen Option?

Sep 16, 2010

I have an select option list, each option has a numerical id, value and text. Each option has an array of its own. So when I choose an option from this list, I want to insert the options array into another option list with an id, value and text. Whats the best way of doing this? How do I select an array based on the value or text of a select option? For for example, take a list of car makes. If I choose the make Audi, how do I select the array of Audi models and insert these models into another select option list. All makes and models have their own numerical id, value and text.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved