Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
alexkwa
alexkwa's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Question about selecting
[2Replies]
27-Apr-2012 07:39 AM
Forum:
Using jQuery
I've spent at least 4 hours on this simple thing that I cant seem to get the hang of.
I basically want to show an element but I cant seem to select it. It has to be relative to the location of the button.
This is my on click:
$('#remScnt').live('click', function() {
$(this).parents('p').remove();
$('#pr_div').remove();
i--;
$(this).parent().parent().children("#addsign").css("visibility", "visible"); //this is the part that i cant get
return false;
});
And this is my HTML, with the highlighted part that I want to hide and that was what I click to hide it.
<div id="p_scents{{ counter }}">
<div id="itmQty" name="{{ item.quantity }}" style="display:hidden;"></div>
<p><input type="text" name="attributes[note]" id="note" rows="1" cols="90" value="Enter message to engrave"><a href="#" id="addScnt">
<i class="icon-plus-sign" id="addsign"></i>
</a><span style="position:relative;margin-left:330px;margin-top:-5px;" id="prc_div">+ {{ linklists.gift-wrap.links.first.object.price | money }}</span></p>
<p style="margin-top:-10px;" name="textbox' + i +'" id="textbox' + i + '"><input type="text" name="attributes[note]" id="note" rows="1" cols="90" value="Enter message to engrave"><a href="#" id="remScnt">
<i class="icon-remove-sign"></i>
</a><span style="position:relative;margin-left:330px;margin-top:-5px;" id="prc_div">+ ' + engravePrice + '</span></p>
</div>
I've attached my file for those who are kind enough to look at it. Thank you!
«Prev
Next »
Moderate user : alexkwa
Forum