jquery

Jquery : how to know which row is selected?

I have a table with dynamically changing rows items. Among the rows there is a small button / link for each unit. Eg Data1 | LinkButton Data2 | LinkButton Data3 | LinkButton Data4 | LinkButton Data5 | LinkButton Data6 | LinkButton What i want is that when i click on the link button ,i need to know which row is ...

JS script running for every element, rather than simple clicked element

using jQuery, I am trying to get an action assigned to a button on a form. I have 50 of these forms on a page, but every time I click one link, the form action is run 50 time!! I ran this to check, and it comes to exactly 50 `i=1 $('.thumbs').click(function(){ console.log(i,"Click Count"); i++; )}; this has th...

windows.location.href and base tag in Opera 10.63

I have a page (for examle, localhost/catalog/) with select element on it. <select name="type" id="typeSel"> <option value="2" selected="selected" >Type 1</option> <option value="1" >Type 2</option> </select> Also there is base tag in the page: <base href="http://localhost/" /> I want to change page url when user click on l...

JQuery .show() and equivalent CSS modification not working with IE 8

There are several posts relating to this, but none actually gives a solution. What actually happens is as follows: function LoadSpinner() { $("#divSpinner").css('display','block'); // could have done with .show() } function UnloadSpinner() { $("#divSpinner").css('display','none'); // could have done with .hide() } function OnClickMyBu...

Need help with jQuery to clone form dropdown (dynamic dropdown)

Hello All, I am using PHP to generate dynamic dropdown, the dropdown list items are fetched from database. Here's the php code for that and it works. <select name="title[]" id="title"> <?php $categories = Category::find_by_cid(5); foreach($categories as $category): ?> <option value="<?php echo $category->name; ?>"><?php echo $category...

event not rendering by jquery to view in asp.net mvc

Hi, I am implementing the full calender in jquery in my asp.net mvc application by referring from here but as per this blog it should be render the events on dates given in the controller action. but it is does not. i followed exact same steps . i checked many times there is no mistake. so why should be this happening? please guide me ...

Jquery: mousedown effect (while left click is held down)

I need a function that executes a function while a button is pressed and stops executing when the button is let go $('#button').--while being held down--(function() { //execute continuously }); ...

jQuery minusing padding when animating left value? Strange.

Hey all, I was working on a slider using an unordered list. Standard structure, example (not the same code I'm using): <div style="overflow: hidden;width: 500px;padding: 20px;position: relative"> <ul style="width: 1000px;position: relative;padding: 0;margin: 0;list-style: none;"> <li style="width: 500px;padding: 0;margin: 0;flo...

Grid like styling with jquery Treeview

Hi, in my project i have hierarchical data and i want to display it in following format i have just downloaded jquery treeview and tried it on a small ul. i want to know if i can make such a display with jquery treeview. if not please suggest some other controls. i m using asp.NET mvc 2 RTM with C# ...

...

    HTML: Play sounds on mouse hover or click

    in my site i want to play tick\click like sounds on mouse over (hover) or on clicks... can it be achieved... we can do this in flash but i want to avoid flash ...

    How to know if .keyup() is a character key (jQuery)

    How to know if .keyup() is a character key (jQuery) $("input").keyup(function() { if (key is a character) { //such as a b A b c 5 3 2 $ # ^ ! ^ * # ...etc not enter key or shift or Esc or space ...etc /* Do stuff */ } }); ...

    Getting the last item in a $('div').each()

    I am using jquery and the each function but I am having trouble finding the last item in a ul list. DATA: <ul id="1"> <li>1</li> <li>2</li> <li>3</li> </ul> <ul id="2"> <li>1</li> <li>2</li> <li>3</li> </ul> <ul id="3"> <li>1</li> <li>2</li> <li>3</li> </ul> I have tried multiple things bu...

    Cas insensitive search in jqGrid including hidden fields

    Hello All, I have few hidden fields in my jqGrid on which I have to perform a case insensitive search (may be using regex - not sure). Is it possible? Can someone give me directions on it? Thanks! ...

    How to stop slideDown() and slideUp() if user hovers out?

    Please, I'm having this code: $('#menu ul > li:not(#menu ul.first li, #menu ul.second li)').mouseenter(function() { $(this).find('a').addClass('active'); $(this).stop(true).find('div.sub').slideDown(500); }).mouseleave(function() { $(this).find('a.active').removeClass('active'); $(this).stop(true).find('div.sub:visible').slideU...

    Check first radio button with JQuery

    Hello, I would like to check the first radio button of each group. But there are some radio button that are disabled, so the script should ignore them and go to next non disabled. I write something like this but doesn't work: $(document).ready(function(){ if ($("input['radio']).is(':disabled')) { $(this).attr('checked', f...

    How to convert keycode to character using javascript

    How to convert keycode to character using javascript var key_code = 65; result should be character = "a"; ...

    post back when session expires in ajax call

    On one of my pages I have a div that uses ajax to load content asyncrohnously. When a session expires the user is supposed to be redirected back to the loggin screen. However, when the session expires and the ajax call is triggered the login page gets put inside the div. What I want is for the user to be redirected back to the login scre...

    how to unbind event by jquery.

    if (IsBestanswer == "True") { $(bestAnswer).addClass('IsBestanswer'); $(bestAnswer).unbind('click'); } bestAnswer.live('click', function() { // some code.... }); actually i want to disable click property on bestanswer while IsBestanswer == "True". here i am using unbind() function. but it's not working ...

    is there any function like string.isnullorempty() in javascript

    I always (thing != undefined || thing != null)?...:...; check. Is there any method will return bool after this check in javascript or jquery ? And how would you add this check in jquery as a function? ...