What is the right way to get values with / or special characters using jQuery?

Asked

Viewed 211 times

1

I have a jquery function in a view, which takes the date in a text type field. The problem is that my jquery function . val() does not take value after bars separating dates.

For example 12/06/2013 it only takes the 12, disregards the bar and what comes after.

    $(function() {
       $('table.prospects > tbody > tr').click(function() {
          getTicketData($(this).attr('data-ticket-id'), $('#select option:selected').val(), $('#is_active option:selected').val(), $('#data1').val(), $('#data2').text());
       });

    })

What is the right way to get values with / or special characters using jQuery?

  • tried to convert to string before the input value ? eg.: toString or something like

  • Are you sure that’s the problem? Look here your problem working, I think there’s something obscure in your code that’s hiding the real problem.

  • Do you have any Mask in input? what is the input and what is its HTML?

  • You can post HTML as well?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.