How can i convert select options elements to JSON text.
<select id="mySelect" multiple="multiple">
<option value="1">First</option>
<option value="2">Second</option>
<option value="3">Third</option>
<option value="4">Fourth</option>
</select>
I want to set options belong to select which is not runat=server to the
And I want ...
Hi all,
I've got the new autocomplete widget in jQuery UI 1.8rc3 working great in Firefox. It doesn't work at all in IE. Can someone help me out?
HTML:
<input type="text" id="ctrSearch" size="30">
<input type="hidden" id="ctrId">
Javascript:
$("#ctrSearch").autocomplete({
source: "ctrSearch.do",
minLength: 3,
focus: f...
Hi all,
By default, Zend_Form creates a hidden input field for each checkbox input in the form. These inputs share the same name.
<input type="hidden" name="zend-cb" value="">
<input type="checkbox" name="zend-cb" id="zend-cb" value="1">
I want to require the checkbox, so I set up the following rule in my jquery plugin validator (ht...
I can't seem to get a hold of it!
First attempt failed:
string url = "http://jquery_ui_dialog.aspx";
IE jQueryDialog = IE.AttachTo<IE>(Find.ByUrl(url));
Second attempt failed:
Process[] processes = Process.GetProcessesByName("iexplore");
foreach (Process p in processes)
{
if (p.MainWindowTitle == url + " - Microsoft Internet Exp...
I used the following function I found online and it works perfectly. However, when my user later asked for commas to be included in the numbers, it broke. It only adds the numbers preceding the comma.
Here is the function:
function sumOfColumns(tableID, columnIndex, hasHeader) {
var tot = 0;
$("#" + tableID + " ...
I'm using JQuery with the jQuery flash plugin and trying to send a JS call back to the flash, I keep running into "xxx is not a function" so apparently something is off. I'm new to JQuery and very new to this jquery flash plugin and just can't quite wrap my head around what I am doing wrong.
Here's where I'm lading up the flash:
<div i...
What is the equivalent of YUI 3's Y.Array in jQuery?
Y.Array() takes array like inputs and converts them into array. More info at http://developer.yahoo.com/yui/3/api/yui-array.js.html
...
I have a news feed where items in the feed are created from JSON returned from a server. When the user takes an action on an item, I want to remove it from the object via javascript.
The feed looks like this:
{"newsFeed":[{"feedId":"1",
"title":"item1 title",
"desc":"description of the item"},
{...
I want to be able to determine if the html contents of a particular element contains block level elements or not...
I was using $(el.html()).length == 0 to indicate that it doesn't which was working fine, but I soon realised that if the html contains a "successful" css selector then the whole thing goes pear-shaped.
Any ideas?
Edit
O...
I have var row=<tr><td>val</td><td>val2</td></tr>.
and i tried this:
$("#mainTable tbody").append(row);
but he appends to the end of the table.
I also tried $("#mainTable tr:first").after().append(row);
but have not got a result yet.
Please, help me to understand
...
I have a global menu and local menu for the products. I would like to highlight 'our products' link when I am showing the products and also highlight the name of the product and its subpages in the local menu so the highlighted links will work as the breadcrumbs. How can I do this with jquery and codeigniter or just jquery.
Here is the c...
I am using a jquery autocomplete and i have a keyup event for my textbox.
When I enter in a letter the function is called but the box is not populated.
Once I click away from the box and then click back into it the autocomplete works great.
Really weird issue and I have no idea how to fix it. Any help would be appreciated.
here's my ...
I have a page where the user can edit various content using buttons and selects that trigger ajax calls. In particular, one action causes a url to be called remotely, with some data and a 'put' request, which (as i'm using a restful rails backend) triggers my update action. I also have a delete button which calls the same url but with ...
If I have two js files that contain variables with the same name, can I use both of the files at the same time? Would those variables cause conflicts?
Thanks.
...
Is there a simple way to change the default error values in the jQuery validation plugin?
I just want to rewrite the error messages to be more personal to my app--I have a lot of fields, so I don't want to set the message individually for field x...I know I can do that!
Thanks!
...
I'm trying to use the show and hide to display a different set of select options when a certain report type is selected. I have a couple problems with this:
The .show .hide only execute properly if I pass params, slow fast, in the the first result of my conditional statement. If I take out the params or pass params in both results, onl...
Trying to wrap my head around the jQuery ".not()" function, and running into a problem. I would like to have the parent div to be "clickable" but if a user clicks on a child element, the script is not called.
$(this).not(children()).click(function(){
$(".example").fadeOut("fast");
});
the html:
<div class="example">
<div>
...
This is a tall order, but is there a jQuery or Mootools (or other framework) plugin to wrap text around images and support IE6? I've tried the jQSlickWrap, but unless the browser supports HTML 5, you're out of luck. What's strange is that IE 6 supports the jQuery Background Canvas plugin, which uses the CANVAS object (via excanvas.js) ju...
I have an element like this:
<span class="tool_tip" title="The full title">The ful…</span>
This seems to work:
jQuery('span:contains(…)');
But this does not:
jQuery('span:contains(…)');
I am pretty sure that it would be bad to use the first one because if someone else saves the file, or the browser decides to get the...
i search online but can't get satisfactory result
i want to protect images on my website, i know i can disable save as, right click.
the real question is can we Disable Clipboard & Print Screen with JQUERY or java script.
so no image copy from print screen.
thanks
...