Hello,
I'm very new to JQuery so this will probably sound ridiculous but I have a form that repopulates data via AJAX into a div section. The problem I'm having is that I have a link where I need to access some table row attributes that get rendered to the page during the AJAX refresh but the attributes are all undefined according to m...
Hi, I need help validating a form, preferably using JQuery:
this is my code:
<form action='index.php' method='post'>
<table>
<tr>
<td>1.</td>
<td><select name='from_1'><option>HOME</option><option>A</option><option>B</option><option>C</option></select></td>
<td><select name='to_1'><option>HOME</option><option>A</option><opti...
I am trying to apply a style to the inner div which is contained in the parent div. The parent div also contains tons of other div but I just want to apply the color to the [0] div.
$("#parentDiv div")[0].css('background-color', 'red');
For some reason it says "css function is not defined!"
...
I am currently using the jQuery user interface to resize a DIV and to also resize the YouTube video that rests inside the DIV.
http://jimenglandweb.com/projects/jquery/instancecontainer.html
When the containing DIV is resized, the YouTube video should follow suit:
$("#instanceContent").resizable({
maxWidth: 425, maxHeight: 344,
m...
I'm using the jQuery Autocomplete plugin, but I'm having some problems with the result highlighting. When a match is found, but the entered keyword contains spaces, there's no highlighting. Example:
search = "foo", result = "foo bar", displayed = "foo bar"
search = "foo ba", result = "foo bar", displayed = "foo bar"
So, I'm trying to ...
I need to pass a few serialized form elements into a function to return them as a JSON object. I wrote the function, but fieldName ends up in the json object as "fieldName" instead of the actual field name ie; "PositionId", or "Series". The values however are correct. JS will not allow me to use field.name, but it does allow field.valu...
I have a jquery question about selecting Id.
Basically, I call a javascript function from an onClick function which I pass in control Id and LabelId.
If I use document.getElementById, it will work, however, if I use jQuery selector, it's NOT working.
<script type="text/javascript">
jQuery.noConflict();
function ToggleProgressE...
I can't seem to find the correct way to take some html being returned from the server, replace each ' with &apos and finally - append the new html to the DOM.
Before the modification, the below works just fine to append the html (not altered)
$(xhtml).find("#inner").appendTo("#appendTD");
But now that I want to alter the xhtml first,...
Hi,
I'm trying to nest several lists inside the main list. Goal is to organize the menu and submenus.
The html:
<ul id="pages_0" class="sortable-list">
<li id="page_14">home
<ul id="pages_14" class="sortable-list">
<li id="page_21">nieuwsarchief</li>
<li id="page_19">waarom bouwelement</li>
<li id="page_20">vac...
(waves newbie flag, also new to JS and jQuery)
I'm working on my companies website, being built on Squarespace.
We have a group of products most of which also have some sort of accessories. I am trying to avoid a super long page of divs with a tabbed interface, that many divs was making me go cross eyed.
So I thought I could use the S...
I've been attempting to create a resizable textbox (ASP.NET multiline TextBox / HTML textarea) and use JQuery UI to make it resizable, but seem to be running into a few issues involving custom drag handles.
The JQuery documentation on the Resizable method (specifically that on the handles option) suggests that I can set any of the handl...
I consider myself as an entrepreneur with basic programming skills. My main experience is with PHP, but mostly as a code breaker- meaning being able to figure out the basics and manipulate the code to my needs. Recently took up studying RoR and it seems easy to understand.
I will be putting together some resources to build a niche socia...
I'm trying to return a part of the url as a string and add it elsewhere.
So I do something like this:
var somestring = $("#hello").attr("href").text().replace(/part\/(\d+)/g, "part-$1");
Only I don't think this is correct. What's the correct way to do return the "part-$1" as a string?
Thanks!
Here's the example:
http://jsbin.com/a...
I just took a look at jqgrid. Has anyone tried implementing this plugin, or used jQuery, to achieve server side pagination?
I am using struts2 and populating a html table with list returned from DB. This list is returned from an Oracle SP. The SP, along with some other parameters, is taking in 'start' and 'begin'. So I can pass numb...
How can I do form validation with jQuery to allow a green check mark if a field passes a regex and a red x if it fails?
Can anyone point me to an example of some jQuery that shows one icon immediately if a field validates and a different one if it fails?
...
I am using MVC with C# also with jquery.
I am using an jquery accordion to see the list of employee details.
On clicking an accordion it'll show the employee details.
When i click Edit of an Employee, it takes to the Employee details page and after save it'll have the EmployeeDetailsID in session. When i come back to the accordion page...
I have the following javascript function which will load data from a server page to the div
This is working fine with the FadeIn/FadeOut effects
function ShowModels(manuId) {
var div = $("#rightcol");
div.fadeOut('slow',function() {
div.load("../Lib/handlers/ModelLookup.aspx?mode=bymanu&mid="+manuId,
...
Dear All.
I am having an ASPX page and i m trying to using jQuery light box(slimbox).I am able to invoke the Lightbox.Now i want to show the content of another page in this lightbox.Ex : I have a data entry form for user registration(signup.aspx).I want to show this when user clicks on the link (which is now showing image in the light b...
I have a messaging tool within the website I am currently working on. The idea is to have a header div and a details div (display="none") for each message.
Ideally, if javascript enabled, I have just the header showing and when the user clicks on it, the details div slide open.
This is fine but how should I work it if javascript is ...
Hi,
I'm developing a webpage (using jquery) where the user can add new graphical controls to the DOM (for example, the user clicks on a link and a new DIV is created). How can I change the background color of this new element for a few seconds (and then it will revert back to its original color)? I want to change the color to give a vis...