detecting key (capslock) in a textbox
When I am typing in the textboxcontrol, can I detect if capslock is on and inform the user? ...
When I am typing in the textboxcontrol, can I detect if capslock is on and inform the user? ...
I'm really suprised I haven't run into this problem before, but it seems that calling jQueries .html() function on an element ignores changes in the DOM, i.e it returns the HTML in the original source. IE doesn't do this. jQueries .html() just uses the innerHTML property internally. Is this meant to happen? I'm on Firefox 3.5.2. I have...
Hello, I need a very simple Javascript on a html page, that will do the following.. Display a text like: This is a string of text and can be long then if you mark some of the text with your mouse, the selected text should be inserted and automatically updated into a text field How can i do it? ...
I have 3 controls with id control_1, control_2, control_3. I want to hide these controls. Currently I am using this: $('#control_1').hide(); $('#control_2').hide(); $('#control_3').hide(); Is there a better way of doing this? Can I do something like $('control_*').hide();? Is there a way to find controls with start with a specific...
The obvious answer to this is "it's not possible" or "make the data smaller"...I have tried these and they don't wash so I need to come up with an alternative There is a table on a web page that has 14 columns in it. 2 of the columns have text in that is quite long (but cannot wrap - the text must be all on one line for each row). Nee...
I am looking out for plugins that can display a larger image when the user clicks on it. I am aware of lightbox. Any others to compare? ...
I need to grab two chunks of a string to obtain the values. I've wrapped them in curly braces for demo purposes. I assume I need to use a bit of regex for this? I'm not asking for someone to spoonfeed me the code, but I'm struggling to figure out how to match more than one part of a string. Once I understand how to do this the world is m...
I have a problem which is driving me nuts. I'm a relative Javascript newbie so please be kind :). I have some existing code for a left navigation menu that makes use of the Treeview plugin for jQuery (http://bassistance.de/jquery-plugins/jquery-plugin-treeview/). To quickly explain it, where a line item has more line items under it, a l...
Let me clarify: I'm using standard jQuery autocomplete plugin (bassistanse.de) and bind it to a KeyValueCollection serialized to JSON (ASP.NET MVC). All works fine, except I want to be able to notify user when he/she types in a value which isn't present in DB, i.e. value not in list. What are possible ways of solving this? Ideally, I w...
Hello, I'm using jQuery-UI tabs, to load internal/external (on-site) content. Is it possible to load part of the document, as it is possible with standart $.ajax, without rewriting complete code? $.ajax({ url: passedUrl + " #pageContent .mySelector", cache: false, success: function(html){ $("#loadHere").append(html); } }); ...
I'm looking into development standards fro JavaScript. I had previously used Doulgas Crockfords Javascript standards and JsLint . However now I'm making more use of JQuery I'm looking for something that is more Jquery oriented as well. Ideally a sensible checklist and an automated tool to validate. However realistically just a set of se...
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody tr') .filter(function() { var chkbox = $(this).find(':checkbox')[0]; return !chkbox.checked; }) .show(); on Button2 Click $('table.result_grid tbody tr') .filter(function() { var chkbox = $(this...
If I have multiple textboxes which have different ID's but all id's start with 'pics' preceeded by a number. so: textbox1 id = 'pics1' value='test1' textbox2 id = 'pics2' value='test2' textbox3 id = 'pics3' value='test1' ... submit I want to do some validation that when the user clicks submit..there are no two values in the textbox...
On the jCarousel plugin site there's an example on how to do a circular carousel but it's using dynamically generated content. I would like to know how one can do the exact same thing with static content. Here's the jCarousel circular example using dynamic content: http://sorgalla.com/projects/jcarousel/examples/special%5Fcircular.html ...
Hi, I have a table and can count the number of rows using var count = $("table tr").length; Basically, I have up and down arrow controls to reorder the rows in the table. I do not want the down arrow to appear for the last row and similarly the up arrow to appear for the top row. Is there a way to refer to specific rows in the table s...
Let's say I have the following Code: <div id="parent"> <div id="child"></div> </div> Now I attach an onClick event to the parent div: $('#parent').click(function() { ... }); Is there an easy way to stop the event from triggering when I click on the child div? I don't want to do something like $('#child').click(function() { ret...
has anyone done any comparison between ajax helpers and jquery. there seems to be a lot of overlap and i wanted to see if anyone did a breakdown on which is better. ...
I have this code: <script type="text/javascript"> $(document).ready(function() { $("#iframeId").contents().find("body").append($("#test")); }); </script> <iframe id="iframeId" name="iframeId" src="about:blank" ></iframe> <div id="test"> Text </div> And i need to append whole object to iframe (not only th...
I'm trying to select all the textareas, but not textareas with a certain class associated with them. How do I de-select an element w/ jQuery? $('textarea' - '.html').autogrow(); ...
I need to find all the URLs on the page using jQuery. They will be static URLS, by that I mean not within anchor tags. ...