Click here to Skip to main content
15,844,752 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Php Email Pin
Richard MacCutchan14-Dec-16 0:18
mveRichard MacCutchan14-Dec-16 0:18 
GeneralRe: Php Email Pin
mamaison28-Dec-16 6:59
professionalmamaison28-Dec-16 6:59 
QuestionRe: Php Email Pin
Richard MacCutchan28-Dec-16 7:49
mveRichard MacCutchan28-Dec-16 7:49 
QuestionConfigure Tomcat for https without redirects? Pin
Member 1290099112-Dec-16 15:28
Member 1290099112-Dec-16 15:28 
AnswerRe: Configure Tomcat for https without redirects? Pin
Afzaal Ahmad Zeeshan16-Dec-16 5:22
professionalAfzaal Ahmad Zeeshan16-Dec-16 5:22 
QuestionWhich Typescript compiler is used by VS2015 during compile on save Pin
GRAyers9-Dec-16 3:29
GRAyers9-Dec-16 3:29 
QuestionUsing Multiple jQuery Scripts Pin
Liagapi8-Dec-16 1:11
Liagapi8-Dec-16 1:11 
AnswerRe: Using Multiple jQuery Scripts Pin
Peter Leow8-Dec-16 1:53
professionalPeter Leow8-Dec-16 1: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 2:17
Liagapi8-Dec-16 2:17 
GeneralRe: Using Multiple jQuery Scripts Pin
Peter Leow8-Dec-16 2:29
professionalPeter Leow8-Dec-16 2:29 
GeneralRe: Using Multiple jQuery Scripts Pin
Liagapi8-Dec-16 3:07
Liagapi8-Dec-16 3:07 
GeneralRe: Using Multiple jQuery Scripts Pin
Peter Leow8-Dec-16 3:24
professionalPeter Leow8-Dec-16 3:24 
GeneralRe: Using Multiple jQuery Scripts Pin
Nathan Minier9-Dec-16 2:47
professionalNathan Minier9-Dec-16 2:47 
QuestionLooping through list of attributes minus 2 items Pin
Christopher Cote5-Dec-16 3:59
Christopher Cote5-Dec-16 3:59 
AnswerRe: Looping through list of attributes minus 2 items Pin
Richard MacCutchan5-Dec-16 7:23
mveRichard MacCutchan5-Dec-16 7:23 
GeneraliFrame Content to Fit iFrame Size Pin
AndreTrollip4-Dec-16 23:38
AndreTrollip4-Dec-16 23:38 
SuggestionRe: iFrame Content to Fit iFrame Size Pin
Member 78438108-Dec-16 2:17
Member 78438108-Dec-16 2:17 
GeneralRe: iFrame Content to Fit iFrame Size Pin
AndreTrollip22-Dec-16 7:04
AndreTrollip22-Dec-16 7:04 
QuestionHow to create python flask web application in visual studio 2013 with SQL server? Pin
davood rz1-Dec-16 8:40
davood rz1-Dec-16 8:40 
Rant[REPOST] How to create python flask web application in visual studio 2013 with SQL server? Pin
Richard Deeming1-Dec-16 12:04
mveRichard Deeming1-Dec-16 12:04 
QuestionSignalR “signalr/hubs” showing 404 error while connecting Pin
Anil chean30-Nov-16 21:18
professionalAnil chean30-Nov-16 21:18 
AnswerRe: SignalR “signalr/hubs” showing 404 error while connecting Pin
Afzaal Ahmad Zeeshan1-Dec-16 8:11
professionalAfzaal Ahmad Zeeshan1-Dec-16 8:11 
QuestionIIS and Printing Pin
Zeyad Jalil29-Nov-16 1:52
professionalZeyad Jalil29-Nov-16 1:52 
AnswerRe: IIS and Printing Pin
Nathan Minier29-Nov-16 2:27
professionalNathan Minier29-Nov-16 2:27 
SuggestionRe: IIS and Printing Pin
Richard Deeming29-Nov-16 3:08
mveRichard Deeming29-Nov-16 3:08 

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.