jquery

jquery IE support for show()

All, I have the following code , <div id="show" display="none"></div> var ele=document.getElementById('show'); ele.style.display='block'; ele.style.padding='1px'; ele.style.borderLeft='solid 1px #d0d0d0'; ele.style.borderBottom='solid 1px #a0a0a0'; ele.style.position='absolute'; ele.style.borderTop='sol...

how to make jquery ui dialog not resizable

anybody knows how to make the jquery dialog not resizable ? I call it like this atm : var elem = $("#mydiv"); elem.dialog({ modal: true, title: 'title', buttons: { Ok: function() { $(this).dialog('close'); } //end function for...

Element or class LIKE selector for JQuery?

For whatever reason I have these classes called .main_sub1, .main_sub2 etc. Never mind why I can't have .main .sub. Is there a way with JQuery, sort of in the way it is possible to do with attributes, to get the classes containing main? ...

Country/City/state validation

I want to do the following things using PHP and jQuery https://www.careerbuilder.com/share/register.aspx?sc_cmp1=JS_LoginASPX_RegNow Steps Select a country from a dropdown list. The city dropdown list will fillup automatically with the list of cities of the selected country. If state is available for that country then state list wil...

Manipulating classes with jquery

Hi, jquery masters, I have a select box with values: apple-80 apple-100 apple-120 apple-300 I have: <body class="fruit apple-120 otherclass anotherclass"> I want to manipulate the body class "apple-120" to get replaced by any of selected value from the select box while keeping the fruit, otherclass, anotherclass, class untouched. So ...

recommendation for gallery script

hi all, i'm looking for a good/lightweight gallery script. jquery, plain javascript or flash. any ideas? it should be possible to display thumbnails and click for bigger view, but also possibility to click through a series of images (previous/next button) thanks ...

Jquery Onclick doesnt seem to work for me...

My php page uses sequence of three radio buttons and two out of three calls jquery click event and toggles a div accordingly... Here is my Jquery function.... $(function() { $("#click_here").click(function(event) { event.preventDefault(); $("#div1").slideToggle(); }); $("#div1 a").click(function(event) { event.p...

Textarea value to paragraph html as text only

Hello, Maybe topic really doesn't explain my problem correctly. I'll try to explain more precise it here. So I'am having a <textarea> and <p> aragraph tags. If I'am entering some text in textarea, and then after button click I insert textarea value into paragraph html. If its text everything is fine, but if it's a hand written html code...

jquery auto refresh script problem

hey guys i wrote myself a block of jquery codes to auto refresh a div just want it to reload every 10 seconds . but problem is after the time i specified in my code script going crazy reload every second <script> var auto_refresh = setInterval(function(){ $(\'#showDIV\').slideUp(\'300\').load(\'movies.php\').slideDown(500);},...

jqGrid - How to delete associated tables?

Is it possible using jqGrid to load data from a table (parent table) but when I want to delete a record, it should first delete the associated records in the child table, because of the Foreign Key constraint. If yes, how to do that. Thanks! ...

jQuery - returning $(this) DOM Element

Hello, i'm using DD_Belated.png to save all IE6 users from seeing the madness of unsupported png. However, this great script takes either selector or DOM Element as parameter to it's only function to do it's magic and return working PNG to IE6. Me, being lazy programmer, did something like this: $("img[src$=png], #search").each ( fu...

Jquery Validation plugin and Colorbox

Does anyone know the best way to get the Jquery Validation plugin to run when submitting a form that has been loaded dynamically into a Jquery Colorbox modal window? ...

JQuery li onhover show another li

Prob quite simple JQuery thing but I am looking to do something like this: <ul> <li>menu item1</li> <li>menu item2</li> </ul> Which on hover display images from another UL LIlist e.g. <ul> <li>image 1</li> <li>Image 2</li> </ul> Any suggestions please -= thanks ...

javascript / jquery time count down

Hello I want to make a function either using pure Javascript or also benefiting from jquery to count down to an ending time such as: //consumes a javascript date object function countDown(endtimme){ ... } and it should display in html such as <div id="time_left_box"> <h1>Time remaining</h1>: <p>hours left: ..remaining day wi...

jquery how to fadeout objects simultaneously

Hi. I am trying to fadeOut a few objects at the same time, here is my code: $("#close-case-study").click(function() { $("#case-study-btns").fadeOut(500); $("[id$='-discover']").fadeOut(500); }); The problem is they are not in sync one starts then the other follows a split second after. What am I doing wrong? Is it because the second ...

Set select options with jQuery

Hi, how do I set an option value in select list with jQuery? I tried: $('#SelectGroup :all').replace("tmp4", "abc"); I mean: Search for tmp4 string and replace it with abc. By the way: in the list there are 4 items I don't mind to go directly to entrance #4. Thanks ...

IE7 turns the edges of my rollover images black

I am using jquery script for my image rollovers and I am encountering a problem in IE7 only where all of my images load in properly but once you rollover the image and roll out the edge of the top image turns black. Does anyone have any idea as to what might be causing this. The site can be found at free-to-be-me.com/ask-ava.php. Here i...

DropDownList + OnSelectedIndexChanged + AutoPostBack=False

hi my dear friends... is it possible to force dropdown list to fire OnSelectedIndexChanged event without AutoPostBack=True? i told that because i have some RadComboBoxes(telerik) In My Form i am controling their focus with JQuery such as this code when my form loads: <script src="../JQuery/jquery-1.4.1.js" language="javascript" type...

jQuery $.post callback function calling location.reload() without using an anonymous function

Consider the following: wrap callback in anonymous function (works) $('#updateView').change(function(e) { $.post(URL + "actions/updateView.php", { view: $(this).val() }, function() {reloadPage();} ); }); call function directly (cookie is set but doesn't seem to update before page reload) $('#updateView').change(function(...

whats the best way to show a partialview on the results of a jquery json call

i have an asp.net mvc view where the top of the page is a table. What i want is to click on a row in the table which will go to the server and get back details on that table. This is working fine and i am returning the details in Json. The issue is i know want to show a details panel below. Right now i have the details pane all com...