I have found a simple HTML form with a field:
The code could not work,
I think it might be the name of the input text field, causing the problem to occur,
But I do not know how to To change
because it is a naming convention in KHHHP.
The answer is:
If you use any meta-character You want to use (
#; & amp;; + * ~ ': "! ^ $ [] () = & Gt; | /
) As a literal part of a name, you For example, if you have an input withname = "names [],"
, you select the selectorCan use $ ("input [name = names \\ [\\]]")
.
case: $ ("input [name = \\ [user \\] \\ [user_id \\]] ")
although I think By default the cake form assistant creates an element in this way:
& lt; input type = "text" name = "data [user] [user_id] "Id =" UserUserId "value =" 1 "& gt;
There is no '
in the name and the id is easily selectable.
Comments
Post a Comment