|
I have a ASP.NET MVC application. The code in the aspx is like that
<input '<%= ViewData["Disabled"] %>' class="Text1" type="text" name='test' value='0'/>
ViewData["Disabled"] contains at this state a string =
'disabled="disabled"'
the result...
Started by Markus on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe try getting rid of the enclosing single-quotes:
<input <%= ViewData["Disabled"] %> <%= ViewData["Disabled"] %> class="Text1" type="text" name='test' value='0'/>
Kindness,
Dan.
|
|
I want to restrict user to enter values in textbox at particular button click otherwise set disabled false. If I set $("#txtquery").attr("disabled","disabled"); it sets text box to blank. I want to retain the text if readonly is toggled.
Started by Dee on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
$('#txtquery').attr('readonly', 'readonly');
Just use:
$('#txtquery').attr('readonly', 'readonly');
to disallow further editing..
|
|
I have a form field that starts out disabled and has an onClick to enable it. The onClick doesn't fire (at least in FF) nor does a simple alert(1);.
The hacky version is to show a fake form field in its place that "looks" like it's disabled (grayed out...
Started by iamgoat on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Enabling a disabled element on click kind of defeats the purpose of disabling, don't you think? If you really want the behavior you're describing, just style it 'disabled' and remove those styles from elements and all kinds of other....
|
Ask your Facebook Friends
|
Hello!
I have been learning alot about the standard asp.net Validators, and my latest discovery was about how to disable a validator client side, which was pretty cool.
now, if my initial post has the validator enabled, but client side, i disable it, ...
Started by N8 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
How do you disable them on the client side? I would imagine that unless the act of disabling them on the client does a postback that the viewstate will remain unchanged and hence they will be reenabled on the next page refresh (just theorizing....
|
|
Hie, Probelm :- Posting to the user temporarily disabeld / Scraps disabled / Posting to the community disabled / Friend's request disabled. Reasons:- 1. To prevent spam, orkut has limited how many actions you can perform in a certain amount
Started by ghafoortabish on
, 25 posts
by 17 people.
Answer Snippets (Read the full thread at google):
What Could I Do....
Thnx..!! t@v!z scrap posting to this user has been temporarily disabled temporarily disabled.
You have to wait for 1 week once you get disabled from adding more friend.
Hi, @akkiweb.
To add even a single friend....
|
|
I want to be able to select all disabled decandants of a given element, in my particular instance a table cell and then enable them.
NOTE that there may be elements that are not "inputs"
I have tired the following with no success
$("#myCell [disabled=...
Started by Jon P on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could probably just have the....
Try:
$('#myCell :input:disabled').removeAttr('disabled');
The :input selector is going to select all input elements, and the :disabled selector is going to select elements that are disabled.
|
|
I have a form which needs javascript to be enabled for validation, is there a way to disable submit button when javascript is disabled and warn user to enable it first ?
Started by Datis on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Remove that message of a scripting language ( like....
If you do that, you should also consider a message on the form indicating why the button is disabled.
Alternatively you can start with the button disabled (as other posters suggested).
|
|
My brother made his adsense account a long time ago, and his account got disabled for invalid click activities now when I make my account they denied it, this is exactly what they said Account Disabled Your AdSense account for this login is currently ...
Started by pistolgrenade on
, 21 posts
by 3 people.
Answer Snippets (Read the full thread at google):
If you log into a disabled account on the same computer that you applied to the new one on, I am pretty sure, I'd recommend applying from your own....
It was probably disabled because it was associated with an already disabled account.
|
|
$(document).ready(function() { $('#<%=ddlContinents.ClientID %>').change(function() { var element = $(this); var totalLength = element.children().length; if ($(this).disabled == false) { $(this).disabled = true; } }); });
What I am trying to do ...
Started by Shiva on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
() { var element = $(this); var totalLength = element.children().length; if ($(this).attr("disabled") == false) { $(this).attr("disabled","disabled"); } }); });
if (!$(this).attr("disabled")) { $(this).attr("disabled....
|
|
OK, I have been trying to book a hotel room for a couple of nights in London in August because we have Olympics tckets (hooray!). Many places were already full (or claimed to be) or charging such inflated prices I ruled them out.
One hotel had a few rooms...
Started by Gaditano on
, 19 posts
by 15 people.
Answer Snippets (Read the full thread at digitalspy):
I certainly wouldn't be able to blag it once the general policy...? I doubt anyone will ask you to "prove"... .
Personally, I wouldn't assume that it was ok to book a proprietory disabled room if I, or anyone using the room, was not disabled.
|