JQuery :: Disabling A Text Box With 1.6.2?

Aug 16, 2011

I am unable to disable a text box when a form loads. It worked before with attr() instead of prop() in earlier versions, now with 1.6.2, it does not work.

This is my code

<HTML>
<HEAD>
<script type="text/javascript">
$(document).ready(function()

[Code]....

View 1 Replies


ADVERTISEMENT

Disabling Highlighting Of Text

Dec 22, 2010

The first page with the menu works just fine, but when you go to any of the other pages it won't let you highlight the text to copy and paste - in certain circumstances. It works fine on my home computer which is running Windows XP. I've been able to work with it in all browsers. On Windows Vista and Windows 7 there are issues. The only real difference is the previous/next page menu and the switch div script which is written in Javascript. This is the only thing I can think that's interfering. I've only tested Internet Explorer and Chrome in Vista (don't know about Chrome in 7) but it inhibits in both browsers.

Might there be any work arounds? On 14.html which is the Index (as in book, not the main web page) the switch div is gone but it's still not working. However, I tested just the switch div script on another web-site without the previous/next page menu and that also doesn't work.

[Code]...

View 1 Replies View Related

Disabling Text Select In Event?

Jun 19, 2009

The following function works fine provided you call it from the body's onLoad property.

Code:

function disableSelection(target){alert('in');
//disable text selection if drag in progress so we don't highlight text while dragging panels over other panels
if (typeof target.onselectstart!="undefined") //IE route

[code]...

I put an alert inside the disable function and it DOES hit it onload, but you can still select text on the page.

View 5 Replies View Related

Disabling/Enabling A Text Field If...

Apr 3, 2002

In forms, we have all seen where people have numerous options to choose from in a SELECT field, or they can select Other, and type something in a different text field.

I would like to be able to disable this Other text field if the SELECT isn't on Other.

I know how to disable the submit button, but I don't know how, or even if, you can disable/enable a specific text field.

View 2 Replies View Related

Disabling A Text Field Depending On 2 Options?

Aug 30, 2011

Not 100% sure why or how to make this work.I have 5 options in a select drop-down. Only two of them are to disable a text field. I have written it successfully to disable on one option. How would I add the second option? I have tried many different ways, and i know its something small that i am missing.Below is the code that does not work but shows the 2 options that disable my text field.

<script type="text/javascript">
function type_disable() {
var qr_type = document.getElementById('qr_type');

[code]....

View 3 Replies View Related

Disabling Copy / Paste In Password Text Field?

Jan 9, 2009

I have a password text field, where copy paste from anywhere must be disabled. I have a textarea where the user must be limited to enter only 250 characters.
<textarea name="description" id="description" maxlength="250" rows="4" dojoType="dijit.form.SimpleTextarea" style="width:200px;overflow:auto;word-wrap:break-word;">${fn:trim(status.value)}

View 1 Replies View Related

Data Application: Disabling Text Select In Opera

Nov 16, 2006

I am creating a data application where users must be able to select table rows to perform actions on it... Think in terms of Yahoo Mail. I have written a script to select clicked rows and to deselect them when clicked again. I also added shift button functionality and 'escape' to deselect all.

However my problem arise with my click and drag to select multiple rows. It works fine in FF and IE, I have managed to disable text select in these browsers because it looks awry, but have not managed to achieve the same effect in Opera. Code:

View 12 Replies View Related

Disabling Copy And Paste In Text Box / Area Field?

Oct 13, 2005

Is it possible to disable copy and paste property in text box and text area field.

View 5 Replies View Related

JQuery :: Datepicker: Disabling Mondays?

Oct 16, 2010

is there a way to disable all mondays on the datepicker?

[Code]...

View 2 Replies View Related

JQuery :: Disabling A Click Object?

Jun 14, 2011

I have a <td> element that has a jQuery 'click' object attached to it. Inside that element is an anchor that's positioned absolutely. When you click on the anchor link, I want to avoid triggering the 'click' object that's attached to the <td>

View 7 Replies View Related

JQuery :: Disabling Checkboxes At Maximum No?

Jun 6, 2011

I have a list of checkbox items, a maximum of 4 to be chosen. Got that part sorted.Within the list are a sub-group, maximum of one of these can be chosen.E.g. in a list of the numbers 1 to 8, I can choose up to four numbers, but only one of them may come from numbers 5 - 8.I can get it to choose a maximum four items from the 8, disabling other boxes once I reach four.I can get it where I can choose only one of 5 to 8.But, if I select, say 6 first and then go back to check 1,2 and 3, it enables 5,7 and 8 again. I don't know how to make them stay off once they're off.CODE:

$
(
"#full :checkbox"

[code]....

View 6 Replies View Related

JQuery :: Disabling Page Re-loads If Another One Is Used

Apr 20, 2011

To begin, I'm a novice at this. I'm using 2 JQuerys on a page -

[Code]...

The first fades a page in and out when loading. The second 'smoothly' scrolls the page down to anchor text in the page. The problem is that the 1st script 'overpowers' the second, so when you click on an anchor text link it starts to 'smoothly scroll down, then the first script kicks in an re-loads the page. Is there a way of stopping the first script if the second one is being used?

View 5 Replies View Related

JQuery :: Disabling FocusInvalid For A Given Element

May 18, 2009

I'm putting together a form using the Validate plugin, and have run into an issue it would be nice to resolve. My issue Is around the focusInvalid option. I'd like to disable the focusInvalid behavior for a particular element, yet keep it enabled for the rest.

View 3 Replies View Related

JQuery :: Dialog Disabling Aspx Button?

Dec 7, 2011

I'm using

<link href="../css/le-frog/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>

[Code].....

Like that, my aspx button inside the dialog (inside the div) doesn't work... it doesn't do a post back. I click and nothing happens (no JS errors). If I comment out the line $("#dialogProd").dialog({ width: '400', position: 'right' });

Then it works normaly as expected (obviously the dialog doesn't show, and I see the DIV as a regular div).

Is there anytihing wrong with the code? some way to prevent this? I had the same code in older version of jQuery and did not have a problem.

View 1 Replies View Related

JQuery :: Disabling A Link That Fires A Function?

Jun 17, 2011

I'm busy experimenting with jquery at the moment for a website I'm trying to put together.

I have a bunch of links which fire a jquery function as follows:

<a href="#" class = "spam" onclick="return changeValue('1');">Spam</a>
<a href="#" class = "spam" onclick="return changeValue('2');">Spam</a>
<a href="#" class = "spam" onclick="return changeValue('3');">Spam</a>

[Code]...

View 2 Replies View Related

JQuery :: Disabling A Textbox If Checkbox Is Ticked?

Oct 17, 2011

I have a checkbox on a page which I have styled using some jquery code. I want the textbox underneath the checkbox to be disabled if the checkbox is ticked and enabled if it is unticked. I tried using regular javascript to do this but I beleive it didn't work because I have existing javascript/ jquery code on the page...here is a link to the page :[URL]...

View 3 Replies View Related

JQuery :: Disabling Default Submit Event?

Jan 24, 2010

I've put a onsubmit="return false;" on my html form. I wanna prevent the browser from asking metop password saving bar, when i press send button, 'cause i'm trying to model an ajax form.I've tried the following:

[CODE]
$('#target').submit(function() {
alert('Handler for .submit() called.'); // debug

[code]....

View 1 Replies View Related

JQuery :: Disabling Input Elements In A Form?

Aug 26, 2010

I am writing a ASP.NET UserControl and I am trying to incorporate JQuery into this. The control is a simple form with a few input fields (text, checkbox, select, radio). The first element in the form is a checkbox. Upon clicking this checkbox I want the all the input elements in the form (except the checkbox control itself) to be enable/disable. I tried writing some of this code but my solution was not getting me anywhere. Below is the ASP.NET form code.

<
asp:Panel ID="pnlInputControls" runat="server"> <table style="width:100%;">
<tr>

[code]....

View 2 Replies View Related

JQuery :: Disabling Mouseover When Onclick Event Happens ?

Feb 11, 2010

I have this code for animating a vertical menu. It changes the width of a menu item to using .animate().

So the behaviour now is: When my mouse is over the menu item, it expands (width 220px), when I remove my mouse it shrinks back (width 95px). Now I want it to stay expanded when I click on it and shrink back and expand a new menu item when I click it.

Menu item are listed, using different css classes for designing their looks.

View 2 Replies View Related

JQuery :: Disabling JCarousel Image Selection?

Sep 17, 2009

I've encountered a minor but annoying bug in jCarousel.

1. Go to http://sorgalla.com/projects/jcarousel/examples/dynamic_javascript.html

2. Double click the right arrow button.

3. Notice some of the images and middle section get the selection

[Code]...

View 1 Replies View Related

JQuery :: Selection Field + Disabling Fields

Mar 18, 2011

The purpose of the jQuery code is that when you select an item from the select field that other items need to be disabled(works correct in all conditions) and that at the same time text in corresponding divs' text are altered. The thing is that the script basically works.. however when you've made a selection only the disabling works everytime but the divs are only updated once, so you need to refresh the page if you want to do it again..

[Code]...

View 1 Replies View Related

JQuery :: UI Datepicker - Disabling Specific Dates?

Oct 13, 2010

I am using the jQuery UI Datepicker - Event Search.

I want to disable specific dates only. For example, I want to disable the following dates only:

Code:
10th Oct 2010
21st Oct 2010
12th Nov 2010

searched in google and found one page which promised to deliver what I was looking for. But unfortunately it does not seem to work. If you look into its demo, it has disabled ALL dates.

View 7 Replies View Related

JQuery :: Disabling Button In HTML Form Plugin?

Jul 8, 2009

I am currently using this plugin [URL]..(HTML) to display a div with content, depending on what is entered.Is there a way to disable the submit button if the div contains a certain message?

View 5 Replies View Related

JQuery :: Disabling Parent Link If Children Present

Sep 23, 2009

Is it possible to 'deactivate'/nullify a top-level link in an unordered list if child links exist in that list?

For example, I have the following:

And I want to knock out Link 4 because it has sub-items. Is that possible?

View 2 Replies View Related

Ajax :: Disabling Remote Calls To JQuery Script

Mar 14, 2011

I'm actually not sure if this isn't possible to begin with, but thought I should ask as it's better safe than sorry. On a number of my pages, I use jQuery.ajax() using the json data type. For example:

[Code]...

Would it be possible for people to execute this script from their own server? If yes, is there any preventative measures I can take to block any remote execution of the script? And, are there any other safety concerns I need to be aware of?

View 3 Replies View Related

JQuery :: Disabling Ordinary Link Button During Form Validation?

Apr 5, 2011

I've got a JQuery Mobile form working across multiple "pages", even though it is a single HTML file.This is done by placing the opening form tag before the <div data-role="page"id="screen1"> tag, and closing it after the final losing page div tag. Works great.Currently the form validation is properly flagging each field as the user leaves it.The only trouble I am having is making the continue button at the bottom of each screen disabled until the visible invalid fields pass validation.Here's the simplified version of the code:

<!DOCTYPE HTML>
<html>
<head>

[code]....

View 1 Replies View Related







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