2

First of all I want to apologize for asking silly questions. I haven't found a good resource where I can search such questions. Please help. I am customizing a page where date is defined as below. I can't add id for other reasons so have to use element name to call the change event.

<td><input type="text" class="psDateWidget"  name="[04]datestart" value="" size="10"></td>

When I use the name like this

 $j("input[name='[04]datestart]'").change(function() 

It does not fire the event. Why? How can I make it work? Thanks in advance for your help!

Kaur
  • 491
  • 2
  • 7
  • 19

1 Answers1

2

Update your code to

$("input[name='[04]datestart]'").change(function() 

Remove the extra j adjacent to $

Here is a working plunker - http://plnkr.co/edit/mKPDwgCLTwdxD6lFaX4j?p=preview

Nikhil Aggarwal
  • 28,197
  • 4
  • 43
  • 59