Hi,
Do you think jquery could help me get the following script work faster?
Thanks!
window.onload=function colorizeCheckedRadios(){
var inputs = document.getElementsByTagName("input");
if (inputs) {
for (var i = 0; i < inputs.length; ++i) {
if(inputs[i].checked&&inputs[i].type=="radio"){
inputs[i].parentNode.parentNode.style.backgroundColor='#FCE6F4';
}
}
}
}
I want a UML modelling tool, preferably as an eclipse plugin that can perform the following:
model UML diagrams
Generate stub java code from the diagrams
I have used Jquery UI Tabs, and given close option to the tabs. By default i am creating three tabs and its corresponding three divs. Now when i close a tab then the tab and its div are removed. I need to just hide the tab and div and when i click Add Tab i should just show the hidden tab and div. I am not sure how to show/hide the tab and div property.
Thanks in advance.
Jeevi
I'm watching a tutorial learning JQuery for the first time, and it seems you can select items using pretty much CSS, like:
$('ul li:nth-child(3)').addClass('biscuits');
Is that kind of selector going to work on all browsers, or just ones that support CSS 3 ?
i changed my grid column value in a currancyformate..
something like this..
grid.Columns.Find(c => c.DataField == "Marketvalue").Formatter = new CurrencyFormatter
{
DefaultValue = "",
DecimalPlaces = 2,
DecimalSeparator = ".",
ThousandsSeparator = ","
};
how to change the other column in % value.. I need to show in a percentage form using jquery
thanks
i have a parent window and a child window. in javascript, i want a function in child window to be called whenever the parent window loads a new page. i'd like to use something similar to jQuery's $(document).ready() so that I don't have to worry about whether the parent is done loading yet - but ready() only appears to fire when the window loads the first page - but not when, say, a link is clicked in the parent and it loads a second page.
any suggestions? thanks.
My database consists of some entries which are NULL (so they don't affect max, min, etc..). When I pull all of the data from the database, I need to repopulate form fields with the values. Using .val(value) where value = NULL seems to work without any problems, but I'm not sure if this is a valid way to go about this. It doesn't say anything in the jQuery documentation (that I can find) about using NULL as parameters to functions.
I would like to run some code right after a certain set of elements are attached. jQuery.live() allows you to bind event handlers to elements, even if they are created later. But AFAIK there is no suitable method to do something like the following:
$("some selector").live("attach", function() { $(this).whatever(); });
How can I accomplish this?
Hi
I have a Jquery accordion which works fine. Sections get expanded/collapsed when clicked on respective headers. But I want to add the functionality so that when I click on "next" button it opens up the next section and clicking "Previous" button takes me back to previous section.
This has been done on this page http://jquery.bassistance.de/accordion/demo/?p=1.1.2 (last example) but not sure how do I implement the same in my case.
Any suggestions please.
Thanks
UPDATE: How do I get previous or next section of the accordion?
<script type="text/javascript">
$("#accordion").accordion({
header: "h3.header"
, autoHeight: false
, collapsible: true
});
</script>
<div id="accordion">
<h3 class="header">Section 1</h3>
<div> content 1 .. content 1 .. content 1 .. content 1 ..
<input class="next" type="button" value="next"/>
</div>
<h3 class="header">Section 2</h3>
<div> content 2 .. content 2 .. content 2 .. content 2 ..
<input class="previous" type="button" value="previous"/>
<input class="next" type="button" value="next"/>
</div>
<h3 class="header">Section 3</h3>
<div> content 3 .. content 3 .. content 3 .. content 3 ..
<input class="previous" type="button" value="previous"/>
</div>
</div>
Where I can find a complete list of all jQuery supported events (like click, mouseup etc) with some explanations when they are triggered? I am looking for those that can be binded:
$('#foo').bind('click', handler);
For example I just found out by accident that there is paste event but I can't find any references to it anywhere in their docs. What else is there?
Problem with jQuery:
After changing the border and background color of some input fields in a form that fail the validation i don't know how to get the previous, original colors back as i don't pre-style the inputs but use the browser settings instead. how to handle this?
thanks in advance,
clubnite
When we open plain swf in browser, we are able to control the swf file by right clicking, the available control are: zoom in, zoom out, quality, rewind (previous frame), forward (next frame), and print. Is it possible to trigger those control using javascript especially jquery?
Thanks.
I'm trying to figure out why Safari on the iPhone will not load pages created with jquery-csv2table. They load correctly in Safari on the Mac.
Any suggestions would be appreciated.
Thanks.
I am very familiar with self executing functions from working with jQuery.
(function($) { /* do stuff */ })(jQuery);
Today I was reading the backbone.js source and noticed that they do this:
(function() { /* do stuff */ }).call(this);
Is this achieving the same thing? Would the following 2 lines of code do the same thing?
(function($) { /* do stuff */ })(jQuery);
(function($) { /* do stuff */ }).call(jQuery);
I started learning jQuery just yesterday, and I like it very much.
And now I decided to write a script where I can change the margin-left of an image when I click on it, hold the clicking and move the mouse.
Depending on mouse coordinates I must change the image's margin-left. Could you give me an idea how I can do it? Thanks.
I have a very simple page that's usings jquery's datepicker. I have:
<input id=datepicker type=image src='cal.png'>
When I click on the image in FF/IE, it works as expected, but does not work in Chrome (ver. 4.1.249.1064). However if I simply change to "type=text", it works within Chrome.
So my question is this: am I allowed to use Datepicker with "type=image"?
I have an add form inside a div which has 3-5 textboxes.. I submit the form via ajax and hide the div in the success function of it... Now i want to clear all the values of textboxes within the adddiv using jquery?
Hi,
How to find all the anchor tags inside a div tag and need to append one more property to the anchor tag. say target="_blank".
How can i do this in using jquery?
http://stackoverflow.com/questions/1785762/how-to-add-a-full-sized-image-to-the-center-of-a-webpage-using-jquery/1787976#1787976
The code the guy posted...
I want to get better at JQuery, but I don't know what type of application I should make to test my skills. What would you suggest that would not be too hard so I would get frustrated as a beginner.
Any help is appreciated.
Thanks!
(sorry if I sound like a noob, by the way =P)