Problem in jquery

It is my jquery/ajax coding.
it is not not working now.

$(document).ready(function() {

$(".ac_odd").live(‘click’, function() {
alert(‘odd’);
var s_name = $(this).text();
$(’.sport-name’).val($(this).text());
$(’.ac_results’).css(‘display’,‘none’);
var sport_id = 22
$.get(
“/users/8/sport_subscriptions/”+sport_id+"/form_fields/?sport_name="+s_name+"&is_new=yes",
“”,
function(data) {
$("#extra_form_fields").html(data);
if ($("#extra_form_fields").find(“form”).length
== 1) {
// strip the superfluous tag
$("#extra_form_fields").html($("#extra_form_fields").find(“form”).html());
}
return false;
});
});

$(".ac_even").live(‘click’, function() {
alert(‘even’);
var s_name = $(this).text();
$(’.sport-name’).val($(this).text());
$(’.ac_results’).css(‘display’,‘none’);
var sport_id = 22
$.get(
“/users/8/sport_subscriptions/”+sport_id+"/form_fields/?sport_name="+s_name+"&is_new=yes",
“”,
function(data) {
$("#extra_form_fields").html(data);
if ($("#extra_form_fields").find(“form”).length
== 1) {
// strip the superfluous tag
$("#extra_form_fields").html($("#extra_form_fields").find(“form”).html());
}
return false;
});
});

On 8 August 2012 08:46, Maddy [email protected] wrote:

It is my jquery/ajax coding.
it is not not working now.

Since you have not told us what it is supposed to do and what the
problem is then we have little chance of helping. I suggest you strip
your code down to a very simple starting point with no more than three
or four lines of code. Get that working then add to it to get to what
you want.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs