Question: How can I ensure that all my $ (documents) .ready
Only the first couple?
I'm trying to change the value of the hidden field on my form to use an external .js file whether or not the box is checked. Now the .js file looks like this:
$ (document) .ready (function () {$ (function () {$ ('[name = "c1"]') 'Change', function () {$ ('[name = "i1"]'). Val ('cargo');});});}); $ (Document) .ready (function () {$ (function () {$ ('[name = "c2"]'). ('Change', function () {$ ('[name = "i2"] ') .val (' waro ');});});}); $ (Document) .ready (function () {$ (function () {$ ('[name = "c3"]'). ('Change', function () {$ ('[name = "i3"] ') .val (' waro ');});});}); $ (Document) .ready (function () {$ (function () {$ ('[name = "c4"]'). ('Change', function () {$ ('[name = "i4"] ') .val (' daily ');});});}); $ (Document) .ready (function () {$ (function () {$ ('[name = "c5"]'). ('Change', function () {$ ('[name = "i5"] ') .val (' daily ');});});});
I have a check box inside my table:
& lt; Input type = "checkbox" id = "c1" name = "c1" value = "17 9 43" & gt; & Lt; Input type = "hidden" name = "i1" value = "" /> ... (one of these for each box)
What is happening is that the first 3 of these ready calls will have to work properly and then when another box changes Will be checked. (I'm testing it on chrome.) I've found that the Help Forum suggests that it is not looking down on the page because there is some error, but since they are all the same work, I'm not sure How to determine what the error might be and fix it.
So - how can I make sure that all my So far, I have seen some suggestions for using I am using WordPress and the only way to get a .js code on a page is to load the file from an external file, so carrying the code around the page is not really an option. The very .js file is being told from the header.ff file on WordPress right now, beyond a very wide header or footer option (at least without the better directions, I'm able to find it on Google). $ (document) .ready do not add pieces only and not first?
$ instead of
, however, that change does not affect the end result. I have changed all of my names into a set as if I had seen some pages, but she failed to do anything, so I went back to different tasks. $ (.live)
.
I'm not sure you're using more than one document.
calls for one reason, but if possible, you should add them to one:
$ (function () {$ ('[name = "c1"] '' 'Change', function () {$ ('[name = "i1"]'). Val ('wargo');}); $ ('[name val' ('wargo';)); $ ('[Name = "c3" = "c2"]). (' Change ', function () {$ (' [name = "i2"] ']' '(' change ', function () {$ ('[Name = "i3"]). Val (' warga ');}); $ (' [name = 'c4'] ') (' change ', function () {$ (' [name = '] ('' Change '', 'function'); $ ('[name =' i5 ' ). Val ('Daily');});});
Multiple documents. First
functions It is permissible and should work in theory. It seems that an error is being thrown away which is preventing others from executing. By adding them to the same function, you will give all or some results.
No comments:
Post a Comment