Click here to Skip to main content
15,887,267 members
Home / Discussions / Web Development
   

Web Development

 
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 
AnswerRe: Looping through list of attributes minus 2 items Pin
Richard MacCutchan5-Dec-16 6:23
mveRichard MacCutchan5-Dec-16 6:23 
GeneraliFrame Content to Fit iFrame Size Pin
AndreTrollip4-Dec-16 22:38
AndreTrollip4-Dec-16 22:38 
SuggestionRe: iFrame Content to Fit iFrame Size Pin
Member 78438108-Dec-16 1:17
Member 78438108-Dec-16 1:17 
GeneralRe: iFrame Content to Fit iFrame Size Pin
AndreTrollip22-Dec-16 6:04
AndreTrollip22-Dec-16 6:04 
QuestionHow to create python flask web application in visual studio 2013 with SQL server? Pin
davood rz1-Dec-16 7:40
davood rz1-Dec-16 7:40 
Rant[REPOST] How to create python flask web application in visual studio 2013 with SQL server? Pin
Richard Deeming1-Dec-16 11:04
mveRichard Deeming1-Dec-16 11:04 
QuestionSignalR “signalr/hubs” showing 404 error while connecting Pin
Anil chean30-Nov-16 20:18
professionalAnil chean30-Nov-16 20:18 
AnswerRe: SignalR “signalr/hubs” showing 404 error while connecting Pin
Afzaal Ahmad Zeeshan1-Dec-16 7:11
professionalAfzaal Ahmad Zeeshan1-Dec-16 7:11 
QuestionIIS and Printing Pin
Zeyad Jalil29-Nov-16 0:52
professionalZeyad Jalil29-Nov-16 0:52 
AnswerRe: IIS and Printing Pin
Nathan Minier29-Nov-16 1:27
professionalNathan Minier29-Nov-16 1:27 
SuggestionRe: IIS and Printing Pin
Richard Deeming29-Nov-16 2:08
mveRichard Deeming29-Nov-16 2: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.