I am trying to convert select boxes to radio buttons on the fly using jquery, and I'm not sure the best way.
Example HTML:
<form id="product">
<select name="data[123]">
<option value="1">First</option>
<option value="2">Second</option>
......
<option value="n">xxxxxx</option>
</select>
</form>
...
hey there - I'm trying to use asp.net mvc for some things as usual, but I've got a bit of a quandry.
At one point in my application, I need to load a view and pass a specific model through it - this isn't a huge deal, except that it relates to the existing model. Now then, RenderPartial doesn't work because that only passes a model and...
I want to use some jquery in my forms and I was hoping to use some ready made solutions - there seem to be a lot of them...
Which django apps would you recommend for this purpose? Which are most popular?
EDIT #1:
Hmmmm... I suppose I didn't put enough effort into my question... I was hoping for more options/clarifications...
There se...
I am using the JQuery UI accordion control that gets initialized in the $(document).ready() function. When moving to different views, I am seeing a flicker on this menu. Is there a way around this?
...
Using this rather neat approach I can disable weekends and holidays from the datepicker.
However, I want to combine this with the disabling of the next three business days from today's date. Simply setting the minimum date is relatively easy:
var dateMin = new Date();
dateMin.setDate(dateMin.getDate() + 3);
$(function() {
$('#txtColl...
I wish to browse the DOM of an (arbitrary) web page to extract data and think jQuery would simplify the navigation problem. So after the browser, say IE, finishes loading a page (that does not already use jQuery), how can I:
attach jQuery to the page's Document object?
invoke a jQuery function via DOM?
I appreciate your reply...
Hi, I'm binding two event handlers to an input field on 'keydown'. If the enter key has been pressed, the first event handler needs to stop the propagation of the event so that it doesn't hit the second eventhandler. I'm doing it like so:
if (jQuery.browser.msie) {
event.cancelBubble = true;
} else ...
I have a site that we require the user to have enabled JavaScript and cookies before they can login to the site. (The JS part is done and works perfectly.) At the moment, we have been been setting a cookie and then redirect the user to another page (in PHP). This has worked fine, but now we have a bunch of people that have bookmarked the...
Firefox has the Sandbox and evalInSandbox(). Chrome has sandboxed execution in their content scripts (they call it isolated execution). I'm looking for the same thing in an IE browser extension.
I can load a javascript file, then call evalScript(), but the code executes in the same environment as javascript that exists on the page. I ne...
Hi all, i want to ask that, is it possible to make any cover opening effect with JQuery or with any other JS code? I don't mean that page turning, i mean cover opening (like thick covers) Thanks right now..
...
Hi,
I have some div´s in my page (build with php+jquery) and I want to filter them according to their attributes (if there´s more than 1 attribute filtering, than it will narrow down the search).
The div´s look like this:
<div id="solicitacoes">
<div id='1' title='Mike' status='18' analista='23'>Whatever content 1</div>
<div id...
I have a popup opened using NyroModal plugin to logout of the application. In the Popup when the button is clicked RaiseCallbackEvent event in the codebehind in popup is not executed.
PopUp Code:
<script src="../Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../Scripts/jquery.nyroModal-1.5.5.js" type="text/javas...
I am interested in using jQuery to create automatic pagination for content based on the height of the content and the div, rather than by number of items. Most pagination examples I have been able to find are based on the number of items to be paginated, rather than the height of the containing div and the height of the contents. This so...
From the following markup.
<div id="my-div">
<a href="#" id="link-1">Somewhere</a>
<a href="#" id="link-2">Somewhere else</a>
</div>
What are some options, using jQuery selectors and JavaScript for grabbing the integer in the ids?
For example.
$("#my-div a").click(function(){
$(this).id // ... somehow grab n from "link-...
I'm setting the html of the body element in an iframe to a string str, then I want to access that content on the next line (here just using an alert call to display the content) but the html and append functions haven't completed by the time the alert statement is called.
$(function(){
....
$("#notes-tab span.add_draft").bind("click", f...
Can I count the number of elements with a specific attribute?
For example all the images with the src attribute test.gif
...
I'm feeling so dumb asking this question, but I can't figure out a clean way to write this...
Heres the HTML
<li>
<a class='link_parent' href='#'>Test</a>
</li>
I want the click function of the parent LI to redirect the href of the a with .link_parent...
so...
$('a.link_parent').each(function() {
$(this).parent().click(function()...
Hey, I'm trying to get my pagination numbers to update when the user uses the filter options at the side.
Here is what I'm talking about:
When you click the color - Yellow - you should only get 1 result(Giant) and only 1 page number should display. however the pagination is not updating properly and still displays all page numbers.
He...
I've got a table full of events, and I'm trying to get the number of events which are on at each hour. So that it is easy to see the number of concurrent events.
To do this, I'm running through the table looking for the event divs (which sit inside td), and then get the start and duration, and put that into a seperate div, adding them ...
I have a working jQuery Autocomplete (the one by bassistance) in my view. The problem is I am just not getting this stuff. The MVC action returns JSON data and the plugin reads it out nicely and filter works great - it lists the results and I can choose from the dropdown. But then when I choose it nothing happens - I select an item eithe...