jquery

How to style non-Widget elements like jQuery widgets.

I'd like to apply similar styling to elements like textboxs, checkboxes, etc. that my pref-fab jQuery UI theme applies to the jQuery UI widgets. Is there a solid way to do this, or is it a mix and match process manually choosing style classes from the theme? ...

Problem in making a jquery tab visible and invisible with Css class in asp.net master page.

I've set of jquery tabs on my asp.net master page as follows. <ul> <li <%= Session["CurrentTab"] == "Firsttab" ? "class=\"current\"" : "" %>><a href="First.aspx">First</a></li> <li <%= Session["CurrentTab"] == "Secondtab" ? "class=\"current\"" : "" %>><a href="Second.aspx">Second</a></...

jquery appendTo form

jquery $(function(){ $('#4').click(function() { $('<input name="if4" type="text" value="other price>"').appendTo('form'); }); }); html <form> < input name="name" type="text" value="Enter your name" /><br /> < input name="contacts" type="text" value="Contact info" /><br /> < select name="services"> < option value="1">1</opti...

Jquery Sticky Tabs

Hi Guys, I have searched through this entire site but i couldn't find what i was looking for. I am using Jquery UI tabs and i try to keep the page on the selected tabs when the page is refreshed. This is what i got: $(document).ready(function() { var cookieName = 'stickyTab'; $('#tabs').tabs({ selected: ($.cookies.get(cookieNa...

ASP.NET UpdatePanel stopping JQuery from working

Hi All, I have an update panel on my page with some links that have onClick events that trigger a JQuery box to pop up. This works fine unless an AJAX postback has occurred. I saw some code on another post: Page.ClientScript.RegisterStartupScript(TypeOf(Page), 'ajaxTrigger1', 'Sys.WebForms.PageRequestManager.getInstance().add_endReques...

How to loop a json array and update links

Hello, On page load, I do one call to get the current status of all the favourite links (display the right message aka: click to subscribe, click to unsubscribe. Final Code! :) Thanks for your help guys, please check post revisions to see the issue. $(InitFavorite); function InitFavorite(){ var jList = $(".favourite_link"); ...

jquery how to make insertBefore work only once, on first click?

jquery $(function(){ $('#4').click(function() { $('<input name="if4" type="text" value="other price>"').insertBefore('form textarea'); }); }); html <form> < input name="name" type="text" value="Enter your name" /><br /> < input name="contacts" type="text" value="Contact info" /><br /> < select name="services"> < option valu...

jquery autocomplete with key value pair

hi. I want to use jquery autocomplete with webservices data (webservice in c# in asmx file). This autocomplete need to take the value key pair. How to connect webservice and how it must look?? how to display text, and after selecting the value type somewhere?? ...

jQuery + Simple Dialog

Hi, I have a jQuery Model windows which contains a form. On creating of the page, I'm able to see the fields although in my dialog, i have set autoOpen to false. All the forms are in a div. a sample of my dialog looks like this: $("#dialog-form").dialog({ autoOpen: false, height: 460, ...

Getting the id of child element based on the parents class name

I am currently playing around with jqueries drag and drop, basically I currently have a div (.drag_check) that holds a checkbox, I have the drag and drop working but I want to alert out the checkbox's ID once the element is dropped, I assume I have to use child but all my attempts have returned 'undefined'. Below is my code, $('.drag_c...

Validate subset of a form using jQuery Validate plugin

My HTML form has a number of divs that are the steps of a wizard. Upon clicking a "next" button I want to validate just the active div. I'm using the jQuery.Validate.js plugin. Each div has an ID, so I want a way to say something like: wizardForm.validate().element('#first-step :input') but this only validates the first input, not al...

IE6 Jquery Namespace problem

Hi, The following code works in all browsers apart from IE6... var mylib = { selectStyle : { init : function() { $('#select-box1').jqTransform({imgPath:'jqtransformplugin/img/'}); } } } <script type="text/javascript"> mylib.selectStyle.init(); </script> The error states 'mylib' is unde...

Combining multiple jQuery functions

Is there any way to combine all of this to reduce the amount of js? This is just an example of some of the jquery dialogs I have in my site, there are a few more too. Thanks. //initiate Search refinement dialog here $("#chooseMoreCnt, #chooseMoreCat, #chooseMorePr").dialog({ bgiframe: true, autoOpen: false, width: 500, ...

Mootools to jQuery convert

Hi, I would like to implement the Vimeo website scroll/easing effect (look for the sun and clouds) in my website. Vimeo uses Mootools to do that, I want to use jQuery. How do I do this? Below is the easing part that needs to be ported to jQuery (don't know this is allowed to post so delete this if it isn't): var scroller; window.addE...

jQuery - select onchange to slide in / slide out div or form

Hi, I am trying to enhance a form, by showing only relevant fields depending on initial selection via a form select field. It is an order form for 3 products and all 3 products have unique properties. My idea was to hide all the content in divs, then reveal the relevant div when the product is selected. I have found some solutions th...

jQueryUI Modal confirmation dialog on form submission

I am trying to get a modal confirmation dialog working when a user submits a form. My approach, I thought logically, would be to catch the form submission. My code is as follows, $('#multi-dialog-confirm').dialog({ autoOpen: false, height: 200, modal: true, resizable: false, buttons: { 'Confirm': function(){ ...

Upgraded jquery to 1.4.2. Now project doesn't find jquery

I have a C# ASP.NET MVC application which has been using jquery 1.3.2 in VS2008 environment. I decided to upgrade to 1.4.2 and added the file to my project. Changed the reference in my masterpage header to the new version. But now nothing works, it's like it can't find the jquery library. What could be wrong? ...

Jquery .hide problem

I'm using jquery to show animated MSN like window at the bottom of the page. Jquery code: $(document).ready(function() { $(" .inner").stop().animate({height:'142px'},{queue:false, duration:600}); $(' .close').click(function(event) { $(' .inner').hide(); }); $(' .inner').click(function() { location.replace("somepage.php"); }); }); Th...

jQuery - Compatibility Problem with Internet Explorer 7 and Opera

Hello there, I have this counter which counts + 1 every time somebody shares content from the site. When it happens, the social icon that was clicked will bounce. It works in Firefox,Chrome, IE8, and Opera, however the bouncing animation is wrong in opera. $.fn.countExternal = function(animSpeed, num) { // for each counter this.e...

jquery ajax parse xml, split array

Hi, is it possible to get the last value of an string, that looks like this for example: tm="1610612741|Bulls|Chicago|CHI" and save it as a variable? Something like that: var tm = $(this).find('htm').attr('tm'); I only need the "CHI" string. I tried everything, but what i found doesnt work. I get the string and the var from an x...