Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get element properties or values on "tap" #512

Open
ghost opened this issue Jul 4, 2014 · 0 comments
Open

get element properties or values on "tap" #512

ghost opened this issue Jul 4, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 4, 2014

I am populating a div/page from ajax and appending the elements on the div/page. when we click on any of the element i need to get the id of that element in a javascript function to send it to another div/page , to populate relevant data on the next page which is dependent on the id of the previous page. i am using the id attribute. i had used onclick function on the elements to call a javascript function but it didn't worked. if this could be done using onclick then anyone please help me or if i need to use any other feature of the jqtouch then guide me. here is the line which am using.

$('#current_screen_main_div #current_screen_div_id').append($("list ul class='rounded'> list item li class='arrow'>
anchor tag a href='#next_screen_div_id' onclick='theJavascriptFunctionNeedToBeCalled();'>Test"));

but this isn't calling the function when tapping on the element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants