I need to do something like this:
<asp:RadioButton ID="rbDate" runat="server" Text="Date" GroupName="grpPrimary" />
and be able to check the value of the radio button's checked value in jQuery, but my attempts like these don't return true/false.
if ($('[name=rbDate]').attr("Checked"))
if ($('[name=rbDate]').attr("Checked").val())
i...
Is it possible to check if the browser user has opened a new tab, is closing (not minimizing) the current tab/page, or changing the url? Don't worry, nothing suss it's just for a novelty website. Could someone let me know if this is/isn't feasible via javascript (preferably jquery), and if so, what method to look into. Thanks
EDIT: In t...
I have strings like this:
"Car is blue"
String could also be like this:
"Flower is not at all beautiful"
I have html like this:
<input class="subject" />
<select class="isornot">
<option>is</option>
<option>is not</option>
</select>
<input class="adjective" />
I need to split the string and put it into the appropriate pl...
Hi,
I have such a code block and when code founds an error attribute which is set to error, then it should prevent further execution, how can I prevent it from execution :
$(document).ready(function() {
$("#SendMessage").click(function(e) {
var elements = $("#contact-area input:text[error=error]").get();
for (var i ...
I have a link that opens a Thickbox...
<a href="page.php?tag=lists-element&keepThis=true&TB_iframe=true&height=450&width=500">
Everything works with this except when the Thickbox opens up the title is displayed twice:
Any ideas as to why this is happening or how it can be fixed?
...
In IE6 after showing() or toggling() an initially hidden text input field it is impossible to enter any text in the box. It is also impossible to focus() on the element.
I am using jquery 1.3.2
Here is the code... Any ideas?
$(document).ready(function(){
$(".hide").click(function(){
$(".form").toggle();
})
})
and ...
I am trying to use a jQuery selector on data I get back from an ajax call.
Here is the code I have -
$.ajax({
url: 'moo.html',
success: function ( code )
{
var divs = $(code).filter(function(){ return $(this).is('div') });
console.log( divs ); // gives me back entire object
console.log( $(divs[0]) ); // giv...
How do I customize the ac_results class generated by the autocomplete plugin?
...
I have a thumbnail. When i click on it, how can i enlarge it. I know there are many plugins that do this, but is there simple code that serve the purpose.
...
I have an image $("#main")
how can I use jquery to dosomething(this) when the image has loaded?
...
I have a sidebar on my page that I want to always be 100% of the container size. Sadly, I can't tell the element to do this via CSS alone as the page has a variable height due to dynamic content.
Is it possible to use jQuery to find the height of the content container, and adjust the sidebar height to match it?
I found a few jQuery plu...
I have a contact form that is called using this:
<a id="modalContact" class="nyroModal" href="contact/index.php" title="Contacto"><img src="assets/img/page_flip.png" alt="" /></a>
and here's the javascript (jQuery) that is executed when the user clicks it:
$(function(){
$('#modalContact').click(function(e) {
e.preventDefault...
In this site's navigation: [link removed]
I am attempting to use Jonathan Snook's jQuery background image animation http://snook.ca/archives/javascript/jquery-bg-image-animations/
The code used:
HTML
<div class="navigation">
<ul class="navigation">
<li class="about-us"><a href="#">about us</a></li>
...
Hi
I think that you can set like on post and get methods in jquery timeouts but I am wondering does jquery have a global timeone like it has with ajax start and stop.
Like I would like to set it that if say a post or get or some sort of ajax request is running and it runs more then X amount of seconds. That a popup or something in that...
I need to enter the start date, start time, end date and end time in my asp.net MVC application. date fields are textbox and time fields are dropdown.
How can i fill the time dropdowns using jquery.?
Also i need to restrict the user to select the invalid time periods. For ex.: when the user selects 9:00 AM in start time dropdown, the ...
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='disabled']").removeAttr('disabled')
and
$("#myCell [disabled='disabled']").attr(...
Here is my FlexiGrid
$("#grUser").flexigrid({
url: 'someJSON.php'
, dataType: 'json'
, colModel :
[
{display: '', name : 'Index', width :100, align: 'left'}
, {display: '', name : 'Value', width : 100, align: 'left'}
]
, title: 'Details'
, width: 350
, height: 200
, singleSelect: true
});
...
How can I repeat a function doSomething() every 5 seconds.
I also need code that will make it stop doing it.
And code to on-the-fly adjust the frequency.
...
Hi
What's the best method to mask an input field to only allow float/double, without any jquery plugin.
Acutally i'm doing it like this:
$("#defaultvalue").bind("keypress", function(e) {
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
return false;
}
...
Hello all, could someone PLEASE advise me on how I can activate a function once Thickbox is closed, this would be much appreciated.
function tb_remove() {
window.parent.pageUpdate();// << this is what i have tried
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast...