Skip to main content

whenWhen you have a more complex id string the double quotes areare mandatory  . for

For example if you have an id like this: id = "2.2"
theid="2.2", the correct way to accesaccess it is  : $('input[id="2.2"]')
as$('input[id="2.2"]')

As much as possible use the double quotes for, for safety reasons.

when you have a more complex id string the double quotes are mandatory  . for example if you have an id like this: id = "2.2"
the correct way to acces it is  : $('input[id="2.2"]')
as much as possible use the double quotes for safety reasons

When you have a more complex id string the double quotes are mandatory.

For example if you have an id like this: id="2.2", the correct way to access it is: $('input[id="2.2"]')

As much as possible use the double quotes, for safety reasons.

Source Link
eduard
  • 121
  • 1
  • 2

when you have a more complex id string the double quotes are mandatory . for example if you have an id like this: id = "2.2"
the correct way to acces it is : $('input[id="2.2"]')
as much as possible use the double quotes for safety reasons