Click here to Skip to main content
15,905,419 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Newbie - rendering software? Pin
Richard MacCutchan20-Dec-16 0:52
mveRichard MacCutchan20-Dec-16 0:52 
GeneralRe: Newbie - rendering software? Pin
Member 1291366620-Dec-16 0:56
Member 1291366620-Dec-16 0:56 
GeneralRe: Newbie - rendering software? Pin
Richard MacCutchan20-Dec-16 1:21
mveRichard MacCutchan20-Dec-16 1:21 
AnswerRe: Newbie - rendering software? Pin
Afzaal Ahmad Zeeshan20-Dec-16 3:41
professionalAfzaal Ahmad Zeeshan20-Dec-16 3:41 
GeneralRe: Newbie - rendering software? Pin
Member 1291366621-Dec-16 0:54
Member 1291366621-Dec-16 0:54 
QuestionKendo Dropdown MVC Pin
eejaynic19-Dec-16 9:04
eejaynic19-Dec-16 9:04 
AnswerRe: Kendo Dropdown MVC Pin
Afzaal Ahmad Zeeshan19-Dec-16 23:46
professionalAfzaal Ahmad Zeeshan19-Dec-16 23:46 
GeneralRe: Kendo Dropdown MVC Pin
eejaynic20-Dec-16 3:35
eejaynic20-Dec-16 3:35 
GeneralHow to automatically crop and center an image Pin
Member 1289853215-Dec-16 22:59
Member 1289853215-Dec-16 22:59 
AnswerRe: How to automatically crop and center an image Pin
Afzaal Ahmad Zeeshan15-Dec-16 23:18
professionalAfzaal Ahmad Zeeshan15-Dec-16 23:18 
QuestionPhp Email Pin
Member 1290193913-Dec-16 23:11
Member 1290193913-Dec-16 23:11 
AnswerRe: Php Email Pin
Richard MacCutchan13-Dec-16 23:18
mveRichard MacCutchan13-Dec-16 23:18 
GeneralRe: Php Email Pin
mamaison28-Dec-16 5:59
professionalmamaison28-Dec-16 5:59 
QuestionRe: Php Email Pin
Richard MacCutchan28-Dec-16 6:49
mveRichard MacCutchan28-Dec-16 6:49 
QuestionConfigure Tomcat for https without redirects? Pin
Member 1290099112-Dec-16 14:28
Member 1290099112-Dec-16 14:28 
AnswerRe: Configure Tomcat for https without redirects? Pin
Afzaal Ahmad Zeeshan16-Dec-16 4:22
professionalAfzaal Ahmad Zeeshan16-Dec-16 4:22 
QuestionWhich Typescript compiler is used by VS2015 during compile on save Pin
GRAyers9-Dec-16 2:29
GRAyers9-Dec-16 2:29 
QuestionUsing Multiple jQuery Scripts Pin
Liagapi8-Dec-16 0:11
Liagapi8-Dec-16 0:11 
AnswerRe: Using Multiple jQuery Scripts Pin
Peter Leow8-Dec-16 0:53
professionalPeter Leow8-Dec-16 0:53 
You should understand why you need $( document ).ready()[^].
Outside of this ready() method, a script has to be placed after those html elements that it seeks to manipulate, try this:
<script>
$("p").css("color", "red")
</script>
<p>What color will I become?</p>
<script>
$("p").css("color", "green")
</script>

It will never become red, as the p tag has not being rendered yet when the first script is read.
So it depends on the context of your script.
If you really want to break the script into several, you can wrap them in separate ready() functions.
Peter Leow
http://www.peterleowblog.com/
https://www.amazon.com/author/peterleow


modified 8-Dec-16 6:58am.

GeneralRe: Using Multiple jQuery Scripts Pin
Liagapi8-Dec-16 1:17
Liagapi8-Dec-16 1:17 
GeneralRe: Using Multiple jQuery Scripts Pin
Peter Leow8-Dec-16 1:29
professionalPeter Leow8-Dec-16 1:29 
GeneralRe: Using Multiple jQuery Scripts Pin
Liagapi8-Dec-16 2:07
Liagapi8-Dec-16 2:07 
GeneralRe: Using Multiple jQuery Scripts Pin
Peter Leow8-Dec-16 2:24
professionalPeter Leow8-Dec-16 2:24 
GeneralRe: Using Multiple jQuery Scripts Pin
Nathan Minier9-Dec-16 1:47
professionalNathan Minier9-Dec-16 1:47 
QuestionLooping through list of attributes minus 2 items Pin
Christopher Cote5-Dec-16 2:59
Christopher Cote5-Dec-16 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.