I have this form in my html:
<form action="/awe/ChangeTheme/Change" method="post">
<select id="themes" name="themes">
...
<option value="blitzer">blitzer</option>
</select>
<input type="submit" value="change" />
</form>
anybody knows how to submit it when a value is selected in the 'themes' dropdown ?
...
I'm using an accordion for navigation and I need each element to become active on mouseover, but on mouseout the initial active element should expand, instead of the last hovered one.
This is what I'm trying:
<div id="accordion">
<h3 id="item-1">Item 1</h3>
<div id="item-1-content">Item 1 content</div>
<h3 id="item-2">Item ...
i have following code,i stored value in imgwidth variable
var newImg = new Image();
newImg.src = document.getElementById('image').src;
var height = newImg.height;
var width = newImg.width;
var width_img = width/3;
jQuery.mynamespace = {imgwidth : width_img};
how can i retrieve imgwidth v...
So here is the scenario. I have a series of about 60 hidden li's that contain important information about each link. When a user hover overs the link the alt info displays in a special information area.
<li style="list-style-type: none; "><a href="a" alt="This offers details on cars, monkeys trees, horses and how to do your t...
Hi,
I'm working on a site which uses the EZPZ tooltip jquery plugin, and I have the style of the page changing dramatically when a button is clicked, making the tooltip pointless.
But, I can't for the life of me figure out how to unbind the event from the <li>.
Here's the code that is used to actually set up the tooltip on the li's:
var...
I have been tasked with a project where I am to add a new application and have it within an older application (web applications). This is an internal application and management decided that they want it wrapped in this older app. The older application is a ASP.net web app using the 3.5 framework.
My original plan was to use jQuery and...
hi experts, i'm having list of user with check box, so the function is at least one check box must select else validation done using jquery to delete selected user, once validation done there should confirm message box appear to ask confirmation wheter yes or no to delete. so below is my code without the confirm message box
function d...
I am attempting to create a treeview of Document libraries from SharePoint (wss3).
the icons i specified in the types plugin are not rendering? I am probably missing something so simple.
How can I inject more nodes into the tree when i expand a folder or document library?
TreeView">
$(document).ready(function () {
var thisSite = ...
I'm making a large and complex application and I need to set tabindexes to help user navigate through the pages. This is a private application so I don't have restriction about (ab)using javascript (jquery).
I currently have these questions.
1) How do you force with javascript (jquery) the browser to move the cursor inside a specific t...
So when eval(data) is complete, how would you set a callback?
...
I have a button that changes the background of a div when its rolled over. the background needs to change on a timer so i have used setTimout to execute methods that change the backgrounds. I thought clearTimeout would cancel and timeouts i have set so i put this on the mouseleave event. However it doesnt seem to stop the timeouts. Is my...
This occurs in IE8, and IE7. I am not coding to support IE6, so that doesn't concern me.
I have this simple line of jQuery code that runs fine on other browsers, but on IE, I get the error..
Object doesn't support this property or method
I have marked the offending line.
options.button.click(function (e) {
options.me...
In MVC I made a jQuery modal asking me if i'm sure if i want to delete it, and then make a postback with $.post I use this for all my 'Index views', which are quite a lot.
For most views, when I delete something, the row from the table is also delete with hide()
now, for some views, things do not really get deleted, but they get 'inact...
So if I were to do this $('.my_class[href]'), this should return to me all the elements in the page with class 'my_class' that has attribute 'href'.
Could I get to the same result if I have a variable with the value $('.my_class')? How do I filter only those elements in that variable with those who have attributes?
...
I'm using Rails 3. Could anyone suggest me a plugin (jQuery, Prototype) that works well?
It will be fantastic if there is a plugin for formtastic.
...
How can I find the number of divs with a specific class name using jquery
like here I would like to get the result as 2 for class name "failedtest". and I also want to access them through the id of outer div (1285766787423container)
<div id="1285766787423container" class="container">
<div class="row">
<div class="cell1">
...
iam having the select box
<select id ="myselect">
<option value="AA">AA</option>
<option value="AB">AB</option>
<option value="AC">AC</option>
<option value="AD">AD</option>
</select>
so on document load I want to Make item "AC" in the select box as the default selected option on loading the document
$('#myselect').children('opti...
Hi,
We are about to commence a redesign of our site and are exploring all options in improving performance. The site is fairly heavy in javascript loaded adverts, therefore we need to be really lean with the javascript we use.
Do any of you have any experience of lighter frameworks or more efficient frameworks that I could explore? Or ...
I have a hidden input field that will take the value of another on keyup and I'm trying to figure out how transform the value in the hidden field to lowercase and replace spaces with hyphens. So, if someone types "This Is A Sample" in the title input field, the identifier input field will be set to "this-is-a-sample".
<input type="te...
this code is not working , it disables the code and after sometimes it must enable it , how could i do it? what could be wrong? i am doing this to avoid multiple clicks
<% Html.EnableClientValidation(); %>
$(document).ready(function () {
$('#form1').submit(function () {
$('#btn').attr("disabled", "disabled");
...