How do i go about creating some JQuery code which will change the selected value of an menu.
On my page i have created a drop down menu like so:
<select id="select_Day">
<option value="Monday">Monday</option>
<option value="Tuesday">Tuesday</option>
<option value="Wednesday">Wedsnesday</option>
<option value="Thursday"...
here is the script does what i want but not exactly,
my question is, how can i stop user entering text once it reached the lmit of 255 characters?
var limit = 255;
var txt = $('textarea[id$=txtPurpose]');
$(txt).keyup(function() {
var len = $(this).val().length;
if (len > limit) ...
I have a list of links that all go to a google maps api.
the links already have the daddr (destination) parameter in them as static. I am using Geo-Location to find the users position and I want to add the saddr (source address) to the links once I get the data.
so basically I will need to add something like &saddr=50.1234567,-50.03452...
That I got no idea how.
I need a function that the window height or the monitor configuration is larger than 1200, put a div position top = 1000px and else put in another position top = 800px
...
Hi,
I'm using masonry for layout.
I have set up a filter for the divs using the following code:
$("#logo").click(function() {
$(".box").fadeIn();
$(".box:not(.logo)").fadeOut();
});
when I select an item, I want masonry to reload the layout so that the items are reshuffled and that there aren't blank spaces.
Ideas?
thanks
...
For those of us who are aesthetically challenged, is there a way to apply JQuery's themes (e.g. redmond) to an ASP.NET gridview?
Something like ...
$(document).ready(function() {
$(function() {
$("<%= MyGridView.ClientID %>").Table();
});
});
Perhaps there's an addin that would emulate that type of functionality?
...
This is a fairly easy one, but I cant seem to figure it out.
Basically I have a jquery hover that fades in a div and fades out the other upon hover.
When I quickly hover on and off a few times it pulses back and forth for about 3-4 seconds to finish all those fade in/fade outs.
I generally stop these things with .stop(), but it doesn...
Hi
I been using the jquery ui for quite a while now. This is the first time using 1.8 though and I am not sure why but it seems to me this plugin has taken steps backwards.
I never had so much difficulty to use the Jquery UI as I am having now.
First the documentation is out of date.
Dependencies
* UI Core
* UI Draggable (Option...
Edit: Thanks all for the help, rod.
Hi All,
$('#button1').click(function(){
window.location = "/Home/GetCustomers?" + $('#myForm').serialize();
});
Is using window.location subject to querystring size limitation? For instance, if my form has many parameters to serialize?
Thanks,
rodchar
...
How to call a JavaScript function after the selection of file from the Open Dialog window close event. in HTML using HTML file type="file".
I have a file input element
<input type="file" id="fileid" >
How can i call a JavaScript function after the file open dialog window close event.
...
I have a main form, which has button. By clicking on this button JQuery Dialog will shown. And contains of this dialog is a javascript bing map (using VEMAP object). So there are different js documents.
How can I create a context menu for bing map, opening in jquery dialog?
Thanks!
...
User enters tag in the textbox. The textbox is a live search as the user types it brings up suggester results based on the tags already in the system, simiral to stackoverflow tag input :) Tags are separated by commas, so when a user selects a result from the livwe search, it automatically populates the text and a trailing comma
does an...
Hi I am relatively new to javascript development. At the moment I have a single javascript file with lots of little misc bits of code that get called in different part of the website. For example I have an event handler for some google maps stuff that is only called on 1 single page, I have some validation stuff for my contact page etc...
Hi, I'm trying to do a mouseover for the jquery and when the mouse is hovered over a certain row I can get the id from that row and populate information and display an image. However, I have been having the hardest time trying to do so.
Here is what I want to happen
Just like in the onSelectRow where I obtain the data using the follow...
<div>
<%= Html.Trirand().JQGrid(Model.JqGrid,"Grid1") %>
</div>
I am follwoing the same code sample..
http://www.trirand.net/demoaspnetmvc.aspx
but not able to dispaly the grid.. can any one tel me what could be the reasons for not showing grid?
Thanks
...
I have a JavaScript function that I'm passing an argument to, that opens a jQueryUI Dialog. I want the dialog to have either one or two buttons, based on the value of the argument. How should I do this?
So far I've tried:
function foo(hasFile) {
$('#dialog').dialog({
buttons: {
Close: function() { $(this).dialog...
I was thinking of using a slider panel to display two different feed-sections.
For example pulling in Tech in one div, and Sports in another..
Thanks!
...
I have couple of input fields with the class "link". All of them should start the jqueryUI dialog so this is why I bind the method to a class and not an single id.
The difficulty is now that i can't use the (this) in line 12, because that gives me the identity of the dialog and not the input element.
As I am an beginner I don't know how...
Basically I need to hover over an anchor to display the "data-meta" div. Works just fine but when there's multiple td and divs, one hover displays all of them. My question is how can I show/hide them individually? Code snippets below.
<td>
<a href="#">Item</a>
<div class="data-meta">
<a href="#">Edit</a> | <a href="#">Disable</a> |...
Can't seem to get this div to move to the left. Using wordpress. I tried a lot of things but am at a loss. Here is the css for the div:
#portfolio li img {
position: absolute;
float: left;
margin: 34px 50px 0 0;
width: 942px;
}
Here is the header.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://ww...